SUAUN_coyote 2020-09-26 10:49 采纳率: 0%
浏览 522

Mac配置appium+iOS真机,启动webdriveragent前执行./Scripts/bootstrap.sh报错。

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 **

感觉也没有报错啊,看意思就是编译失败,不知道怎么解决,网上搜了好久了,有大神帮忙看下,小弟感激不尽

  • 写回答

1条回答 默认 最新

  • 关注
    评论

报告相同问题?

悬赏问题

  • ¥15 oracle集群安装出bug
  • ¥15 关于#python#的问题:自动化测试
  • ¥20 问题请教!vue项目关于Nginx配置nonce安全策略的问题
  • ¥15 教务系统账号被盗号如何追溯设备
  • ¥20 delta降尺度方法,未来数据怎么降尺度
  • ¥15 c# 使用NPOI快速将datatable数据导入excel中指定sheet,要求快速高效
  • ¥15 再不同版本的系统上,TCP传输速度不一致
  • ¥15 高德地图点聚合中Marker的位置无法实时更新
  • ¥15 DIFY API Endpoint 问题。
  • ¥20 sub地址DHCP问题