WatchKit扩展应用程序的cocoapod Podfile 看起来像什么?
更准确地说,我正在尝试使用RealmSwift集成。
(using MacOS10.10.3, Xcode-6.3.2, iOS-8.3, CocoaPods-0.37.1, RealmSwift-0.92.3)
我目前使用的Podfile看起来像这样(......还没有工作!!! ...因为WatchKit扩展无法识别Realm对象......):
xcodeproj 'MyApp.xcodeproj'
workspace 'MyApp.xcworkspace'
platform :ios, '8.3'
source 'https://github.com/artsy/Specs.git'
source 'https://github.com/CocoaPods/Specs.git'
use_frameworks!
def shared_pods
pod 'RealmSwift', '>= 0.92.3'
end
target 'MyApp' do
shared_pods
end
target 'MyAppTests' do
shared_pods
end
target 'MyApp WatchKit Extension' do
shared_pods
end
link_with ['MyApp', 'MyApp WatchKit Extension']