我使用以下脚本构建电子应用程序:
script/bootstrap.py -v --target_arch x64
script/create-dist.py
第一个成功结束,但第二个抛出此错误(来自TeamCity日志):
...跳过日志条目
[02:56:38] [第2/2页]
[1315/1328] SOLINK "Electron Framework.framework/Versions/A/Electron Framework", POSTBUILDS
[02:56:38] [第2/2页]
FAILED: ../../vendor/llvm-build/Release+Asserts/bin/clang++ -shared -ObjC -stdlib=libc++ -Wl,-dead_strip -mmacosx-version-min=10.9 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -arch x86_64 -L. -install_name @rpath/Electron\ Framework.framework/Electron\ Framework -Wl,-rpath,@loader_path/Libraries -F/Users/teamcity/buildAgent/work/e4f0eac9e33806e2/external_binaries -stdlib=libc++ -o "Electron Framework.framework/Versions/A/Electron Framework" @Electron_Framework.framework.rsp
[02:56:38] [第2/2页]
ld: warning: ignoring file /Users/teamcity/buildAgent/work/e4f0eac9e33806e2/vendor/brightray/vendor/download/libchromiumcontent/static_library/libwebkit.a, file was built for archive which is not the architecture being linked (x86_64): /Users/teamcity/buildAgent/work/e4f0eac9e33806e2/vendor/brightray/vendor/download/libchromiumcontent/static_library/libwebkit.a
[02:56:38] [第2/2页]
Undefined symbols for architecture x86_64:
"blink::WebCryptoKeyAlgorithm::createRsaHashed(blink::WebCryptoAlgorithmId,
unsigned int, unsigned char const*, unsigned int, blink::WebCryptoAlgorithmId)",
referenced from:
webcrypto::(anonymous namespace)::CreateRsaHashedKeyAlgorithm(
blink::WebCryptoAlgorithmId, blink::WebCryptoAlgorithmId, evp_pkey_st*,
blink::WebCryptoKeyAlgorithm*) in libcomponents.a(rsa.o)
"blink::WebCryptoAlgorithm::rsaHashedImportParams() const", referenced from:
webcrypto::RsaHashedAlgorithm::ImportKeyPkcs8(webcrypto::CryptoData const&,
blink::WebCryptoAlgorithm const&, bool, int, blink::WebCryptoKey*) const
in libcomponents.a(rsa.o)
跳过日志条目...
看起来库和构建机器不兼容,但它们都是x64平台。还有什么可能是错的?我在这里只放了部分日志,因为它真的很长(数千行)。我曾经使用相同的步骤来构建1.2.3,1.2.8和1.4.3版本,没有问题。
答案 0 :(得分:-1)
尝试在xcode中设置有效的架构..