我更新了我的Xcode但无法构建.它失败了:
<unknown>:0: error: unable to load standard library for target 'arm64-apple-ios10.0-simulator'
合并脚本:
# 1
# Set bash script to exit immediately if any commands fail.
set -e
# 2
# Setup some constants for use later on.
FRAMEWORK_NAME="SDK"
OUTPUT_PATH="${SRCROOT}"
# 3
# If remnants from a previous build exist, delete them.
if [ -d "${SRCROOT}/build" ]; then
rm -rf "${SRCROOT}/build"
fi
# 4
# Build the framework for device and for simulator (using
# all needed architectures).
xcodebuild -target "${FRAMEWORK_NAME}" …Run Code Online (Sandbox Code Playgroud) 我正在尝试使用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)