To get Carthage set up, the documentation says that you need to add a Run Script.
要设置Carthage,文档说您需要添加Run Script。
On your application targets’ “Build Phases” settings tab, click the “+” icon and choose “New Run Script Phase”. Create a Run Script in which you specify your shell (ex: bin/sh), add the following contents to the script area below the shell:
在应用程序目标的“构建阶段”设置选项卡上,单击“+”图标并选择“新建运行脚本阶段”。创建一个运行脚本,在其中指定shell(例如:bin / sh),将以下内容添加到shell下面的脚本区域:
/usr/local/bin/carthage copy-frameworks
and add the paths to the frameworks you want to use under “Input Files”, e.g.:
并在“输入文件”下添加要使用的框架的路径,例如:
$(SRCROOT)/Carthage/Build/iOS/Box.framework $(SRCROOT)/Carthage/Build/iOS/Result.framework $(SRCROOT)/Carthage/Build/iOS/ReactiveCocoa.framework
This script works around an App Store submission bug triggered by universal binaries and ensures that necessary bitcode-related files and dSYMs are copied when archiving.
此脚本解决由通用二进制文件触发的App Store提交错误,并确保在归档时复制必要的bitcode相关文件和dSYM。
However, I can't find the Build Phases tab anymore or Run Script in the Build Settings search. The Xcode 8 Release Notes mention
但是,我找不到Build Phases选项卡或在Build Settings搜索中运行Script。 Xcode 8发行说明提到
Xcode 8 provides completely rewritten AppleScript support. A new scripting dictionary provides the ability to automate Xcode workflows.
Xcode 8提供完全重写的AppleScript支持。新的脚本字典提供了自动化Xcode工作流的功能。
Does that mean there is no more Run Script? I looked at AppleScript but honestly it looks overwhelmingly complex. Do I need to learn AppleScript just to add the simple one liner that I used to do in Xcode?
这是否意味着没有更多的Run Script?我看了AppleScript但老实说它看起来非常复杂。我是否需要学习AppleScript才能添加我曾经在Xcode中做过的简单的单行程序?
/usr/local/bin/carthage copy-frameworks
2 个解决方案
#1
#2
0
Carthage maintainers updated README, it is necessary to add output paths too to prevent useful copying of frameworks. I have released simple script named Carting to automate these steps.
Carthage维护者更新了README,有必要添加输出路径以防止有用的框架复制。我发布了名为Carting的简单脚本来自动执行这些步骤。
#1
68
It is still there. Make sure you click everywhere indicated in red in the image below.
它仍然存在。确保单击下图中红色指示的任何位置。
#2
0
Carthage maintainers updated README, it is necessary to add output paths too to prevent useful copying of frameworks. I have released simple script named Carting to automate these steps.
Carthage维护者更新了README,有必要添加输出路径以防止有用的框架复制。我发布了名为Carting的简单脚本来自动执行这些步骤。