2015-10-13 64 views
0

我得到在Xcode警告(我試圖讓王國到擴展並通過吊艙我的項目。)應用程序編譯罰款,延長給了我......從擴展和豆莢中使用領域?

ld: warning: linking against dylib not safe for use in application extensions: /foo/bar/baz/Library/Developer/Xcode/DerivedData/Secretary-gklgwtinpjtwntbnzitbsdzhopid/Build/Products/Debug-iphonesimulator/RealmSwift.framework/RealmSwift ld: warning: linking against dylib not safe for use in application extensions: /foo/bar/baz/Library/Developer/Xcode/DerivedData/Secretary-gklgwtinpjtwntbnzitbsdzhopid/Build/Products/Debug-iphonesimulator/Realm.framework/Realm

是有辦法做到這一點,仍然使用可可豆莢來處理?

+0

https://developer.apple.com/library/prerelease/ios/documentation/General/Conceptual/ExtensibilityPG/ExtensionScenarios.html 「要配置的應用程序擴展目標使用嵌入式框架,設置目標的「要求只有應用程序擴展安全API「設置爲」是「,否則,Xcode會提醒您通過顯示警告」鏈接對dylib不安全以用於應用程序擴展「」 可能會幫助您 – BoilingLime

+0

是啊,我已經解決了這個問題,而不是問題的根源。 – Kristof

回答