token-core icon indicating copy to clipboard operation
token-core copied to clipboard

执行./tools/ios-framework-build.sh时编译报错

Open tiantianlikeu opened this issue 4 years ago • 1 comments

执行./tools/ios-framework-build.sh时编译,依然出现i386和armv7的报错。如下信息:

error: The linked library 'libtcx.a' is missing one or more architectures required by this target: i386. (in target 'TokenCoreX' from project 'TokenCoreX')

** BUILD FAILED **

Command line invocation: /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -target TokenCoreX ONLY_ACTIVE_ARCH=NO -configuration Release -sdk iphoneos BUILD_DIR=./Products BUILD_ROOT=./Products build

Build settings from command line: BUILD_DIR = ./Products BUILD_ROOT = ./Products ONLY_ACTIVE_ARCH = NO SDKROOT = iphoneos14.2

note: Using new build system note: Planning build note: Constructing build description error: No signing certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID "8Z7NF6BL8X" with a private key was found. (in target 'TokenCoreX' from project 'TokenCoreX') error: The linked library 'libtcx.a' is missing one or more architectures required by this target: armv7. (in target 'TokenCoreX' from project 'TokenCoreX')

** BUILD FAILED **

期待可以正常编译

tiantianlikeu avatar Nov 20 '20 16:11 tiantianlikeu

你可以打开其中的 examples/TokenCoreX 然后在里面移除i386和armv7架构。 另外由于目前苹果硅计划的存在,其中你需要编译模拟器版本时加入 EXCLUDED_ARCHS=arm64 不然会存在多个 arm64 导致 lipo 无法创建统一的文件

XuNeal avatar Nov 24 '20 06:11 XuNeal