ios-frameworks

App crash on device but works on simulator iOS

梦想与她 提交于 2019-12-09 10:09:12
问题 App wasn't developed by me, but now I have to add some features. Code compiles add launches on simulator but immediately crash on real device (didFinishLaunchingWithOptions never calls). Xcode doesn't show any errors. I think the problem may be in pods and frameworks but don't know how to check if this so. I reinstalled pods and recreated framework dependences in project but no app still crash. I have only this info from Xcode How this info can help me? Any help appreciated. UPD1: stacktrace

Building XMLRPC.framework: Wrong Architecture?

血红的双手。 提交于 2019-12-08 13:29:28
问题 it's me again with my iOS trouble. I've finally managed to build the master branch of this XML-RPC framework https://github.com/eczarny/xmlrpc which produced an XMLRPC.framework for me. I managed to include that framework in my iOS project, all good, but when I build it... ld: warning: ignoring file /Users/kovshenin/Library/Developer/Xcode/DerivedData/XMLRPC-emidbddzjlofthfgowywcfscewgd/Build/Products/Development/XMLRPC.framework/XMLRPC, file was built for unsupported file format which is not

Issues when installing th json framework on xcode4

…衆ロ難τιáo~ 提交于 2019-12-08 08:50:40
问题 Hello I am trying to install json framework. According to installation instructions I have to copy all the classes from json-framwork/classes in my project! I did that and I am getting this error: ld: duplicate symbol _OBJC_METACLASS_$_SBJsonParser in /Users/user/Library/Developer/Xcode/DerivedData/testhttp-eavsbuatbfoagsgbqfnevfpjxxfc/Build/Intermediates/testhttp.build/Debug-iphonesimulator/testhttp.build/Objects-normal/i386/SBJsonParser-4254E5B76E32172.o and /Users/user/Library/Developer

No such module while importing my custom framework to the project

∥☆過路亽.° 提交于 2019-12-07 06:40:23
问题 I followed this tutorial and also this video to create my custom framework. Once I build it for the simulator version/or both simulator and device, I would like to add this to my project. I just drag and drop it to project: My PersonFramework within project navigator: Target membership for my PersonFramework : Linked Frameworks for my App target. And finally my try to import this to the project: No such module PersonFramework . What am I doing wrong? 回答1: Close the Xcode. Go into user(you)

Using React Native within an iOS share extension

ぃ、小莉子 提交于 2019-12-07 03:40:18
问题 Jumping off of this facebook/react-native#1626 GitHub issue, I had a question about setting up a React Native view within an iOS share extension I posted an example GitHub repo that demonstrates the problem, summarized below. So far the proof-of-concept setup is pretty straightforward, but I feel like I'm missing something very simple. In my react-native init scaffolded Xcode project I created a new Share Extension target, and within it linked the appropriate React Native static libraries (

Use 3rd party pod in sub-project (framework project)

a 夏天 提交于 2019-12-06 15:54:07
问题 I am using XCode 8 + Swift 3. I created a fresh iOS project named " MyApp ". Then, I create a Cocoa touch framework project, named "MySubProject". (The idea is to have MyApp project accessing MySubProject code.) They are on the same level folder: - MyApp/ - MySubProject/ I added MySubProject into MyApp project, linked the MySubProject framework. Everything works fine. My project structure looks like this: All works until here! (MyApp code can access MyService code) Now, I need MySubProject to

Error in linking of a static iOS framework to both app's and XCTest targets

我的梦境 提交于 2019-12-06 12:49:30
I have an app which has Objective-C and Swift combined. It has an XCTest target. I have a static framework written in Objective-C which is linked to a main target and is used by main target and test target. I have tested 3 different cases, in which two of them compile but with warnings, while I want to see no warnings when I run my tests: 1) Static framework is not linked to test target (via Link Binary With Libraries ), but is included to the test target's Framework search paths . The test target compiles but I have warning: ld: warning: Auto-Linking supplied '.../MyStaticFramework

Multiple frameworks and common library

醉酒当歌 提交于 2019-12-06 07:59:36
问题 Using iOS 8, Xcode 6 . Let's say I have 2 dynamic frameworks, frameworkA and frameworkB and they are both dependent on libC . In addition, I have an app that uses both frameworkA and frameworkB . My original thought was to make frameworkA and frameworkB umbrella frameworks and libC a subframework. However, Apple advises against umbrella framework and this post describes why umbrella framework is a bad idea due to potential linker conflict issue. My second option is to use cocoapods (still new

RestKit with cocoapod with use_frameworks! can't use AFNetworkReachability

独自空忆成欢 提交于 2019-12-06 05:56:19
问题 My pod file looks like this: source 'https://github.com/CocoaPods/Specs.git' platform :ios, '8.0' use_frameworks! pod 'RestKit' pod 'CocoaLumberjack' On top of my App delegate I added: #import <RestKit/RestKit.h> In the application:didFinishLaunchingWithOptions: I added this: RKObjectMapping *mapping = [RKObjectMapping mappingForClass:[NSString class]]; So far it compiles fine, then I added: AFHTTPClient* client = [[AFHTTPClient alloc] initWithBaseURL:[[NSURL alloc] initWithString:@"asdf"]];

xcodebuild build action to distribute a dynamic framework with stripped dSYM

安稳与你 提交于 2019-12-05 20:00:41
I used to build our dynamic frameworks for internal development using xcodebuild -workspace <workspace_path> build -configuration "Release" now that we are shipping frameworks to 3rd party developers we want to remove symbols from framework binary. I noticed that using build option the binary always contains the symbols, even if the project is configured with: DEBUG_INFORMATION_FORMAT = dwarf-with-dsym STRIP_INSTALLED_PRODUCT = YES STRIP_STYLE = non-global It seems that using archive xcodebuild action the framework is generated with a binary without symbols and a separated dSYM file. However