1、本机环境:
MacOS Catalina:10.15.6
appium:1.8.1
Xcode:12.0.1
2、问题:
在按流程配置
cd /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragent
到桌面版appium的该目录下执行:sudo sh ./Scripts/bootstrap.sh 报错
报错内容:
-e Fetching dependencies
*** Checking out CocoaAsyncSocket at "7.6.4"
*** Checking out YYCache at "1.1.2"
*** xcodebuild output can be found in /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/carthage-xcodebuild.fakqLD.log
*** Downloading CocoaAsyncSocket.framework binary at "Version 7.6.4"
*** Building scheme "YYCache tvOS" in YYCache.xcodeproj
Build Failed
Task failed with exit code 1:
/usr/bin/xcrun lipo -create /var/root/Library/Caches/org.carthage.CarthageKit/DerivedData/12.0.1_12A7300/YYCache/1.1.2/Build/Intermediates.noindex/ArchiveIntermediates/YYCache\ tvOS/IntermediateBuildFilesPath/UninstalledProducts/appletvos/YYCache.framework/YYCache /var/root/Library/Caches/org.carthage.CarthageKit/DerivedData/12.0.1_12A7300/YYCache/1.1.2/Build/Products/Release-appletvsimulator/YYCache.framework/YYCache -output /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragent/Carthage/Build/tvOS/YYCache.framework/YYCache
This usually indicates that project itself failed to compile. Please check the xcodebuild log for more details: /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/carthage-xcodebuild.fakqLD.log
查看了log日志,内容如下:
cd /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragent/Carthage/Checkouts/YYCache/Framework
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target arm64-apple-tvos9.0-simulator -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator14.0.sdk -L/var/root/Library/Caches/org.carthage.CarthageKit/DerivedData/12.0.1_12A7300/YYCache/1.1.2/Build/Products/Release-appletvsimulator -F/var/root/Library/Caches/org.carthage.CarthageKit/DerivedData/12.0.1_12A7300/YYCache/1.1.2/Build/Products/Release-appletvsimulator -filelist /var/root/Library/Caches/org.carthage.CarthageKit/DerivedData/12.0.1_12A7300/YYCache/1.1.2/Build/Intermediates.noindex/YYCache.build/Release-appletvsimulator/YYCache\ tvOS.build/Objects-normal/arm64/YYCache.LinkFileList -install_name @rpath/YYCache.framework/YYCache -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /var/root/Library/Caches/org.carthage.CarthageKit/DerivedData/12.0.1_12A7300/YYCache/1.1.2/Build/Intermediates.noindex/YYCache.build/Release-appletvsimulator/YYCache\ tvOS.build/Objects-normal/arm64/YYCache_lto.o -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -lsqlite3 -framework UIKit -framework CoreFoundation -framework QuartzCore -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker /var/root/Library/Caches/org.carthage.CarthageKit/DerivedData/12.0.1_12A7300/YYCache/1.1.2/Build/Intermediates.noindex/YYCache.build/Release-appletvsimulator/YYCache\ tvOS.build/Objects-normal/arm64/YYCache_dependency_info.dat -o /var/root/Library/Caches/org.carthage.CarthageKit/DerivedData/12.0.1_12A7300/YYCache/1.1.2/Build/Intermediates.noindex/YYCache.build/Release-appletvsimulator/YYCache\ tvOS.build/Objects-normal/arm64/Binary/YYCache
CreateUniversalBinary /var/root/Library/Caches/org.carthage.CarthageKit/DerivedData/12.0.1_12A7300/YYCache/1.1.2/Build/Products/Release-appletvsimulator/YYCache.framework/YYCache normal arm64\ x86_64 (in target 'YYCache tvOS' from project 'YYCache')
cd /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragent/Carthage/Checkouts/YYCache/Framework
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo -create /var/root/Library/Caches/org.carthage.CarthageKit/DerivedData/12.0.1_12A7300/YYCache/1.1.2/Build/Intermediates.noindex/YYCache.build/Release-appletvsimulator/YYCache\ tvOS.build/Objects-normal/arm64/Binary/YYCache /var/root/Library/Caches/org.carthage.CarthageKit/DerivedData/12.0.1_12A7300/YYCache/1.1.2/Build/Intermediates.noindex/YYCache.build/Release-appletvsimulator/YYCache\ tvOS.build/Objects-normal/x86_64/Binary/YYCache -output /var/root/Library/Caches/org.carthage.CarthageKit/DerivedData/12.0.1_12A7300/YYCache/1.1.2/Build/Products/Release-appletvsimulator/YYCache.framework/YYCache
GenerateDSYMFile /var/root/Library/Caches/org.carthage.CarthageKit/DerivedData/12.0.1_12A7300/YYCache/1.1.2/Build/Products/Release-appletvsimulator/YYCache.framework.dSYM /var/root/Library/Caches/org.carthage.CarthageKit/DerivedData/12.0.1_12A7300/YYCache/1.1.2/Build/Products/Release-appletvsimulator/YYCache.framework/YYCache (in target 'YYCache tvOS' from project 'YYCache')
cd /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragent/Carthage/Checkouts/YYCache/Framework
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/dsymutil /var/root/Library/Caches/org.carthage.CarthageKit/DerivedData/12.0.1_12A7300/YYCache/1.1.2/Build/Products/Release-appletvsimulator/YYCache.framework/YYCache -o /var/root/Library/Caches/org.carthage.CarthageKit/DerivedData/12.0.1_12A7300/YYCache/1.1.2/Build/Products/Release-appletvsimulator/YYCache.framework.dSYM
CodeSign /var/root/Library/Caches/org.carthage.CarthageKit/DerivedData/12.0.1_12A7300/YYCache/1.1.2/Build/Products/Release-appletvsimulator/YYCache.framework (in target 'YYCache tvOS' from project 'YYCache')
cd /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragent/Carthage/Checkouts/YYCache/Framework
export CODESIGN_ALLOCATE\=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
Signing Identity: "-"
/usr/bin/codesign --force --sign - --timestamp\=none /var/root/Library/Caches/org.carthage.CarthageKit/DerivedData/12.0.1_12A7300/YYCache/1.1.2/Build/Products/Release-appletvsimulator/YYCache.framework
RegisterExecutionPolicyException /var/root/Library/Caches/org.carthage.CarthageKit/DerivedData/12.0.1_12A7300/YYCache/1.1.2/Build/Products/Release-appletvsimulator/YYCache.framework (in target 'YYCache tvOS' from project 'YYCache')
cd /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragent/Carthage/Checkouts/YYCache/Framework
builtin-RegisterExecutionPolicyException /var/root/Library/Caches/org.carthage.CarthageKit/DerivedData/12.0.1_12A7300/YYCache/1.1.2/Build/Products/Release-appletvsimulator/YYCache.framework
Touch /var/root/Library/Caches/org.carthage.CarthageKit/DerivedData/12.0.1_12A7300/YYCache/1.1.2/Build/Products/Release-appletvsimulator/YYCache.framework (in target 'YYCache tvOS' from project 'YYCache')
cd /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragent/Carthage/Checkouts/YYCache/Framework
/usr/bin/touch -c /var/root/Library/Caches/org.carthage.CarthageKit/DerivedData/12.0.1_12A7300/YYCache/1.1.2/Build/Products/Release-appletvsimulator/YYCache.framework
** BUILD SUCCEEDED **
感觉也没有报错啊,看意思就是编译失败,不知道怎么解决,网上搜了好久了,有大神帮忙看下,小弟感激不尽