LoginSignup
4
5

More than 5 years have passed since last update.

Xcode6 beta2でdyld: Symbol not found: _NSURLAuthenticationMethodServerTrust

Posted at

環境:
・Xcode6 beta2
・Swift
・iOS 7.0
・iPhone5
・CocoaPods使用(AFNetworking)

いつのタイミングからか、
プロジェクトにCocoaTouchクラスを追加すると、

dyld: Symbol not found: _NSURLAuthenticationMethodServerTrust
Referenced from: /var/mobile/Applications/XXXXXXXXXXXX/アプリ名/
  Expected in: /System/Library/Frameworks/CFNetwork.framework/CFNetwork
 in /var/mobile/Applications/XXXXXXXXXX/アプリ名

というエラーが発生して、アプリが起動しなくなった。
特になんの実装もないに等しいUIViewContollerを追加すると、発生し、そのクラスを削除すると正常に起動するという謎現象。

こことか
http://stackoverflow.com/questions/24623831/error-when-debugging-on-7-1-device-swift-xcode6-beta-3
こことか
http://stackoverflow.com/questions/24043532/dyld-symbol-not-found-nsurlauthenticationmethodclientcertificate-when-trying
を参考にして、結局、
プロジェクトに「Foundation.framework」を追加したら正常に起動するようになった。

これはXcode6のバグと考えて良いのかな?

<解決(?)までにやってみたけどダメだった事>
・プロジェクトに「CFNetwork.framework」追加
・pod update
・libPods.aをOptionalに
・~/Library/Caches/com.apple.dt.Xcode/配下の削除
・DerivedDataの削除

結構みんなハマってるみたいですね。

4
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
5