我正在尝试使用xcode 6-beta 3构建一个框架,当使用xcode编译它时它可以工作,但是当使用命令从终端编译它时:
xcodebuild -project <projName> -scheme <schemeName> -configuration Debug clean build
Run Code Online (Sandbox Code Playgroud)
我收到以下错误
CodeSign error: entitlements are required for product type 'Framework' in SDK 'Simulator - iOS 8.0'. Your Xcode installation may be damaged.
Run Code Online (Sandbox Code Playgroud)
并且构建无法完成.它在日志的最后说
The following build commands failed:
PhaseScriptExecution Run\ Script build/myProj.build/Debug-iphoneos/myScheme.build/Script-DB9DC5BB19740464002F9181.sh
Run Code Online (Sandbox Code Playgroud)
升级:
失败的脚本是:
#!/bin/sh
# Config
UFW_TARGET=AppCore
# Default build dir
UFW_BUILD_DIR="./build"
# Global vars
if [ -z ${SDK_NAME} ]; then
# Use the latest iphoneos SDK available
UFW_GREP_RESULT=$(xcodebuild -showsdks | grep -o "iphoneos.*$")
while read -r …Run Code Online (Sandbox Code Playgroud)