【发布时间】:2015-10-16 17:02:18
【问题描述】:
我为我的 tvOS 应用构建了一个 Top Shelf Extension。它在模拟器中正常工作。当我在设备上运行它(运行 tvOS beta 3 的开发工具包)并尝试加载 Top Shelf 扩展时,我的应用程序出现致命错误:
dyld: Library not loaded: @rpath/Alamofire.framework/Alamofire
Referenced from: /private/var/mobile/Containers/Bundle/Application/5EF46962-235C-4330-9723-623E80E3D8BE/MyApp.app/PlugIns/MyApp TV Services Extension.appex/MyApp TV Services Extension
Reason: image not found
我正在使用来自"tvOS" branch 的 Xcode 7.1 beta 3、Cocoapods 0.39.0 和 Alamofire 3.0.0。我的Podfile如下:
platform :tvos, '9.0'
use_frameworks!
target 'MyApp' do
end
target 'MyApp TV Services Extension' do
pod 'Alamofire', :git => 'https://github.com/Alamofire/Alamofire.git', :branch => 'tvOS'
pod 'SwiftyJSON', :git => 'https://github.com/jeffbowen/SwiftyJSON.git', :commit => 'fa3fc27c14602e43f69e8d70da4fc2f9a084a987'
end
不确定这是否是 Alamofire、Cocoapods 或 tvOS beta 3 的问题。我被卡住了。
【问题讨论】:
标签: xcode cocoapods alamofire tvos