2015-07-10 82 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

相关问题