Realm Swift 0.92.3“运行脚本阶段"不工作 [英] Realm Swift 0.92.3 "Run Script Phase" not working

查看:65
本文介绍了Realm Swift 0.92.3“运行脚本阶段"不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试使用新的realm-swift-0.92.3,我无法使运行脚本阶段"正常工作.我按照此处中的说明进行操作.

Trying to use the new realm-swift-0.92.3, I can't get this "Run Script Phase" to work. I follow the instructions from here.

根据说明,我的运行脚本条目为(见下图):

My Run-Script entry according to the the instructions is (see image below):

不幸的是,在尝试编译时,我仍然收到以下错误消息(请参见下文).仍然有什么问题吗?

Unfortunately, I still get the following error message while trying to compile (see below). What could still be wrong ???

bash:/Users/XXX/Library/Developer/Xcode/DerivedData/MyAppglnkfueqyjbdhurfurfkip/Build/Products/Debug-iphonesimulator/MyApp.app/Frameworks/RealmSwift.framework/strip-frameworks.sh:没有此类文件或目录

bash: /Users/XXX/Library/Developer/Xcode/DerivedData/MyAppglnkfueqyjbdhurfurfkip/Build/Products/Debug-iphonesimulator/MyApp.app/Frameworks/RealmSwift.framework/strip-frameworks.sh: No such file or directory

还设置了我的Framework-Search-Paths,如下所示: /Users/XXX/.../MyApp/Frameworks/RealmSwift.framework/Frameworks

My Framework-Search-Paths is also set, as follows: /Users/XXX/.../MyApp/Frameworks/RealmSwift.framework/Frameworks

我对此表示感谢!

推荐答案

确保将您的框架添加到嵌入式二进制文件"和嵌入式框架"中.

Make sure your framework is added to the Embedded Binaries and Embed Frameworks.

这是您应该执行的第一步:转到Xcode项目的常规"设置.将RealmSwift.framework从ios/或osx/目录拖到嵌入式二进制文件"部分.选择所需的项目,然后单击完成.",由于某种原因,它并没有为我添加到项目中,只是添加到了项目中.

While this is the first step that you're supposed to do: "Go to your Xcode project’s "General" settings. Drag RealmSwift.framework from the ios/ or osx/ directory to the "Embedded Binaries" section. Make sure Copy items if needed is selected and click Finish.", for some reason it didn't add it there for me, just to the project.

这篇关于Realm Swift 0.92.3“运行脚本阶段"不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆