RealmSwift和watchos2

RealmSwift和watchos2,swift,realm,watchos-2,Swift,Realm,Watchos 2,使用RealmSwift-0.97.0和watchos2,我第一次尝试运行Watchkit应用程序时出现以下错误: dyld: Library not loaded: @rpath/Realm.framework/Realm Referenced from: /Users/.... Reason: image not found 可能是什么错误 我正在使用以下pod文件将RealmSwift合并到我的项目中: xcodeproj 'iSquash.xcodeproj' workspace '

使用RealmSwift-0.97.0和watchos2,我第一次尝试运行Watchkit应用程序时出现以下错误:

dyld: Library not loaded: @rpath/Realm.framework/Realm
Referenced from: /Users/....

Reason: image not found
可能是什么错误

我正在使用以下pod文件将RealmSwift合并到我的项目中:

xcodeproj 'iSquash.xcodeproj'
workspace 'iSquash.xcworkspace'
platform :ios, '9.0'
inhibit_all_warnings!

source 'https://github.com/artsy/Specs.git'
source 'https://github.com/CocoaPods/Specs.git'

use_frameworks!
link_with 'iSquash', 'iSquash WatchKit Extension'

def shared_pods
      pod 'Realm'
      pod 'RealmSwift'
end

target 'iSquash' do
    shared_pods
end

target 'iSquashTests' do
    shared_pods
end

target 'iSquash WatchKit Extension' do
    platform :watchos, '2.0'
    shared_pods
end
我已经成功使用了bevore(与Watchos1.2和更早版本的RealmSwift…)的同一个pod文件 感谢您的帮助!谢谢

找到了解决方案

RealmSwift和watchos1.0早期版本所需的旧运行脚本不再需要