Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

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

Open
tiantianlikeu opened this issue Nov 20, 2020 · 1 comment
Open

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

tiantianlikeu opened this issue Nov 20, 2020 · 1 comment

Comments

@tiantianlikeu
Copy link

执行./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 **

期待可以正常编译

@XuNeal
Copy link
Contributor

XuNeal commented Nov 24, 2020

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants