相关疑难解决方法(0)

错误:无法为目标'arm64-apple-ios10.0-simulator'加载标准库?

我更新了我的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 ios swift xcode10

14
推荐指数
7
解决办法
6251
查看次数

xcodebuild无法从终端构建但是从xcode成功

我正在尝试使用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)

xcode sh xcodebuild xcode6 ios8

5
推荐指数
1
解决办法
8728
查看次数

标签 统计

xcode ×2

ios ×1

ios8 ×1

sh ×1

swift ×1

xcode10 ×1

xcode6 ×1

xcodebuild ×1