Tag:

Xcode 7'CrashReporter不包含位码'链接器错误

我直接链接在我的iOS应用程序中的PLCrashReporter而不使用任何外部工具,现在当我尝试在Xcode 7上编译它时,我得到链接错误: ld:'… / CrashReporter.framework / CrashReporter(libCrashReporter-iphoneos.a-armv7-master.o)'不包含位码。 您必须使用位代码重新启动(Xcode设置ENABLE_BITCODE),从供应商获取更新的库,或者禁用此目标的位代码。 为build筑armv7 我在哪里可以得到更新的框架或源代码编译启用bitcode并摆脱了错误,而不禁用整个项目的位码?

如何使用Bitcode启用xcodebuild静态库?

Xcode 7引入了Bitcode ,它是某种LLVM中间二进制代码,意味着Apple的服务器可以在不需要我参与的情况下重新编译我的应用程序以用于不同的体系结构。 在Lookback中,我使用我们的库分发静态归档框架。 看起来,当你用“Build&Archive”构build任何东西时,bitcode实际上并没有发射到我的库中,任何人在我们的库中链接到他们的应用程序中,并试图启用Bitcode的构build和存档将获得两个警告: ld: 'Lookback(Lookback.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. (如果lib是用Xcode 6编译的) ld: warning: full bitcode bundle could not be generated because 'Lookback(Lookback.o)' was built only with bitcode marker. The library […]

从命令行terminal创build带有位代码启用和位代码禁用的设备和通用configuration的iOS框架

#!/bin/sh UNIVERSAL_OUTPUTFOLDER=${BUILD_DIR}/${CONFIGURATION}-universal # make sure the output directory exists mkdir -p "${UNIVERSAL_OUTPUTFOLDER}" # Step 1. Build Device and Simulator versions xcodebuild -target "${PROJECT_NAME}" ONLY_ACTIVE_ARCH=NO \ -configuration ${CONFIGURATION} -sdk iphoneos \ BUILD_DIR="${BUILD_DIR}" BUILD_ROOT="${BUILD_ROOT}" clean build xcodebuild -target "${PROJECT_NAME}" -configuration ${CONFIGURATION} \ -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO BUILD_DIR="${BUILD_DIR}" \ BUILD_ROOT="${BUILD_ROOT}" clean build # Step 2. Copy the framework structure […]