我已将所有AFNetworking库文件添加到我的项目(我从github下载).我没有在我的应用程序中创建任何其他视图控制器/类等.我刚刚构建了我的应用程序,发现了9个错误"未定义的架构符号".任何帮助,将不胜感激.
我列出了错误列表.
Undefined symbols for architecture i386:
"_SecCertificateCopyData", referenced from:
-[AFURLConnectionOperation connection:willSendRequestForAuthenticationChallenge:] in AFURLConnectionOperation.o
"_SecCertificateCreateWithData", referenced from:___44+[AFURLConnectionOperation pinnedPublicKeys]_block_invoke in AFURLConnectionOperation.o
"_SecPolicyCreateBasicX509", referenced from:___44+[AFURLConnectionOperation pinnedPublicKeys]_block_invoke in AFURLConnectionOperation.o
-[AFURLConnectionOperation connection:willSendRequestForAuthenticationChallenge:] in AFURLConnectionOperation.o "_SecTrustCopyPublicKey", referenced from:___44+[AFURLConnectionOperation pinnedPublicKeys]_block_invoke in AFURLConnectionOperation.o
-[AFURLConnectionOperation connection:willSendRequestForAuthenticationChallenge:] in AFURLConnectionOperation.o "_SecTrustCreateWithCertificates", referenced from:___44+[AFURLConnectionOperation pinnedPublicKeys]_block_invoke in AFURLConnectionOperation.o
-[AFURLConnectionOperation connection:willSendRequestForAuthenticationChallenge:] in AFURLConnectionOperation.o "_SecTrustEvaluate", referenced from:___44+[AFURLConnectionOperation pinnedPublicKeys]_block_invoke in AFURLConnectionOperation.o
-[AFURLConnectionOperation connection:willSendRequestForAuthenticationChallenge:] in AFURLConnectionOperation.o "_SecTrustGetCertificateAtIndex", referenced from:-[AFURLConnectionOperation connection:willSendRequestForAuthenticationChallenge:] in AFURLConnectionOperation.o
Run Code Online (Sandbox Code Playgroud)
"_SecTrustGetCertificateCount",引用自: - AFURLConnectionOperation.o中的[AFURLConnectionOperation connection:willSendRequestForAuthenticationChallenge:]
ld:找不到架构i386 clang的符号:错误:链接器命令失败,退出代码为1(使用-v查看调用)
我的项目在iOS7上运行良好.但是当我在iOs8上试用它时,UITextFields崩溃了应用程序.我在我的一个故事板上添加了一个全新的UITextField,并触摸新创建的UITextField(没有代表附加到textfield),应用程序再次崩溃.我已经把它整整一天放在上面,你的帮助将受到高度赞赏.
(
0 CoreFoundation 0x000000010d71af35 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x000000010d3afbb7 objc_exception_throw + 45
2 CoreFoundation 0x000000010d721f4d +[NSObject(NSObject) doesNotRecognizeSelector:] + 205
3 CoreFoundation 0x000000010d67a27c ___forwarding___ + 988
4 CoreFoundation 0x000000010d679e18 _CF_forwarding_prep_0 + 120
5 CoreFoundation 0x000000010d60d13d CFStringGetCString + 173
6 CoreFoundation 0x000000010d6316ac CFLocaleCreateCanonicalLanguageIdentifierFromString + 76
7 CoreFoundation 0x000000010d698e0f CFStringTokenizerCreate + 847
8 UIKit 0x000000010c3b6d58 __91-[_UITextInputControllerTokenizer _getClosestTokenRangeForPosition:granularity:downstream:]_block_invoke44 + 253
9 UIFoundation 0x00000001154f406b -[NSTextStorage coordinateReading:] + 42
10 UIKit 0x000000010c3b6a29 -[_UITextInputControllerTokenizer _getClosestTokenRangeForPosition:granularity:downstream:] + 322
11 UIKit 0x000000010c0b279c -[UITextInputStringTokenizer positionFromPosition:toBoundary:inDirection:] + 72
12 …Run Code Online (Sandbox Code Playgroud)