Skip to content

Apple Silicon | Xcode 12.3 构建失败 #61

@hpyhacking

Description

@hpyhacking

我在新电脑上构建 Xcode 12.3 构建时失败,怀疑与我本地的 oepnssl 构建方式有关?

Terminal 在 Open using Rosetta 方式打开,安装 homebrew 后安装的 openssl

In /Users/user/Desktop/bither-ios/Pods/OpenSSL/lib-ios/libcrypto.a(cryptlib.o), 
building for iOS Simulator, but linking in object file built for iOS, 
file '/Users/user/Desktop/bither-ios/Pods/OpenSSL/lib-ios/libcrypto.a' for architecture arm64

下面是错误的全部输出

Showing Recent Messages
Ld /Users/user/Library/Developer/Xcode/DerivedData/bither-ios-bfmzoztdyonedsevujanqsbdwheh/Build/Products/Debug-iphonesimulator/bither-ios.app/bither-ios normal (in target 'bither-ios' from project 'bither-ios')
    cd /Users/user/Desktop/bither-ios
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target arm64-apple-ios9.0-simulator -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk -L/Users/user/Library/Developer/Xcode/DerivedData/bither-ios-bfmzoztdyonedsevujanqsbdwheh/Build/Products/Debug-iphonesimulator -L/Users/user/Library/Developer/Xcode/DerivedData/bither-ios-bfmzoztdyonedsevujanqsbdwheh/Build/Products/Debug-iphonesimulator/AFNetworking -L/Users/user/Library/Developer/Xcode/DerivedData/bither-ios-bfmzoztdyonedsevujanqsbdwheh/Build/Products/Debug-iphonesimulator/Bitheri -L/Users/user/Library/Developer/Xcode/DerivedData/bither-ios-bfmzoztdyonedsevujanqsbdwheh/Build/Products/Debug-iphonesimulator/CocoaLumberjack -L/Users/user/Library/Developer/Xcode/DerivedData/bither-ios-bfmzoztdyonedsevujanqsbdwheh/Build/Products/Debug-iphonesimulator/FMDB -L/Users/user/Library/Developer/Xcode/DerivedData/bither-ios-bfmzoztdyonedsevujanqsbdwheh/Build/Products/Debug-iphonesimulator/FXBlurView -L/Users/user/Library/Developer/Xcode/DerivedData/bither-ios-bfmzoztdyonedsevujanqsbdwheh/Build/Products/Debug-iphonesimulator/KSCrash -L/Users/user/Library/Developer/Xcode/DerivedData/bither-ios-bfmzoztdyonedsevujanqsbdwheh/Build/Products/Debug-iphonesimulator/Reachability -L/Users/user/Library/Developer/Xcode/DerivedData/bither-ios-bfmzoztdyonedsevujanqsbdwheh/Build/Products/Debug-iphonesimulator/RegexKitLite -L/Users/user/Library/Developer/Xcode/DerivedData/bither-ios-bfmzoztdyonedsevujanqsbdwheh/Build/Products/Debug-iphonesimulator/SimpleKeychain -L/Users/user/Desktop/bither-ios/Pods/OpenSSL/lib-ios -F/Users/user/Library/Developer/Xcode/DerivedData/bither-ios-bfmzoztdyonedsevujanqsbdwheh/Build/Products/Debug-iphonesimulator -F/Users/user/Desktop/bither-ios -filelist /Users/user/Library/Developer/Xcode/DerivedData/bither-ios-bfmzoztdyonedsevujanqsbdwheh/Build/Intermediates.noindex/bither-ios.build/Debug-iphonesimulator/bither-ios.build/Objects-normal/arm64/bither-ios.LinkFileList -dead_strip -Xlinker -object_path_lto -Xlinker /Users/user/Library/Developer/Xcode/DerivedData/bither-ios-bfmzoztdyonedsevujanqsbdwheh/Build/Intermediates.noindex/bither-ios.build/Debug-iphonesimulator/bither-ios.build/Objects-normal/arm64/bither-ios_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -ObjC -lAFNetworking -lBitheri -lCocoaLumberjack -lFMDB -lFXBlurView -lKSCrash -lReachability -lRegexKitLite -lSimpleKeychain -lc++ -lcrypto -licucore -lsqlite3 -lssl -lz -framework Accelerate -framework Foundation -framework MessageUI -framework QuartzCore -framework SystemConfiguration -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/user/Library/Developer/Xcode/DerivedData/bither-ios-bfmzoztdyonedsevujanqsbdwheh/Build/Intermediates.noindex/bither-ios.build/Debug-iphonesimulator/bither-ios.build/bither-ios.app-Simulated.xcent -framework LocalAuthentication -framework AudioToolbox -framework QuartzCore -framework CoreGraphics -framework UIKit -framework Foundation -lPods-bither-ios -Xlinker -no_adhoc_codesign -Xlinker -dependency_info -Xlinker /Users/user/Library/Developer/Xcode/DerivedData/bither-ios-bfmzoztdyonedsevujanqsbdwheh/Build/Intermediates.noindex/bither-ios.build/Debug-iphonesimulator/bither-ios.build/Objects-normal/arm64/bither-ios_dependency_info.dat -o /Users/user/Library/Developer/Xcode/DerivedData/bither-ios-bfmzoztdyonedsevujanqsbdwheh/Build/Products/Debug-iphonesimulator/bither-ios.app/bither-ios

ld: in /Users/user/Desktop/bither-ios/Pods/OpenSSL/lib-ios/libcrypto.a(cryptlib.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/user/Desktop/bither-ios/Pods/OpenSSL/lib-ios/libcrypto.a' for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions