2015-07-10 54 views
1

我已經安裝了Xcode 7 beta 3,並且能夠在模擬器上運行我的代碼,但不能在我的設備上運行。我沒有能夠建立,也收到了警告:XCode 7 dyld:設置後找不到符號ENABLE_BITCODE = NO

ld: warning: directory not found for option '-F/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/Developer/Library/Frameworks' 
ld: -bundle and -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) cannot be used together 

所以我設置ENABLE_BITCODE = NO現在的設備構建,但它與錯誤崩潰:

dyld: Symbol not found: __TMdVSS5Index 
    Referenced from: /private/var/mobile/Containers/Bundle/Application/75C6AF90-20D1-4CC7-B206-94C8FAD41DEF/BiggerCity.app/Frameworks/Alamofire.framework/Alamofire 
    Expected in: /private/var/mobile/Containers/Bundle/Application/75C6AF90-20D1-4CC7-B206-94C8FAD41DEF/BiggerCity.app/Frameworks/libswiftCore.dylib 
in /private/var/mobile/Containers/Bundle/Application/75C6AF90-20D1-4CC7-B206-94C8FAD41DEF/BiggerCity.app/Frameworks/Alamofire.framework/Alamofire 

我Podfile是:

source 'https://github.com/CocoaPods/Specs.git' 
platform :ios, '8.0' 
use_frameworks! 

pod 'Alamofire', :git => 'https://github.com/Alamofire/Alamofire.git', :branch => 'swift-2.0' 
pod 'PubNub', '3.7.10.8’ 

有誰知道什麼可能導致此錯誤?它只發生在我安裝Xcode 7之後.Xcode 6運行得很好。

+0

PubNub最近發佈了4.0版本。你有請求3.7的理由嗎? – gurooj

+0

我還沒有更新。這是我會做的。 –

回答

2

需要發生的事情是我需要清理和刪除派生數據。在我這樣做後,我能夠在我的設備上運行我的應用程序。

0

它看起來像你(而AlamoFire)使用雨燕,因此,你需要打開嵌入式內容包含銀行代碼目標構建設置和構建應用程序時,Xcode中會包括所有的雨燕.dylib文件。

有可能您使用的是AlamoFire框架的錯誤版本,因爲使用此特定版本意味着.dylib文件需要與應用程序捆綁在一起,因此您只能鎖定iOS 8+。我會尋找在Objective-C中實現的版本。

+0

如果你建議一個Objective C選項不會AFNetworking(對Alamofire的Obj-C表親)更適合嗎? – kbpontius

相關問題