bytedance / Fastbot_iOS

About Fastbot(2.0) is a model-based testing tool for modeling GUI transitions to discover app stability problems
Other
556 stars 112 forks source link

xcode 14 build failed #103

Closed wenyuanyuan closed 1 year ago

wenyuanyuan commented 2 years ago

error build: Cannot link directly with dylib/framework, your binary is not an allowed client of /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/XCTAutomationSupport.framework/XCTAutomationSupport for architecture arm64

yangyangwfy commented 2 years ago

webDriverAgent has the same issue, but the latest WDA fixed this bug. https://github.com/appium/appium/issues/17174 How to resolve this bug on fastbot_ios?

geron-cn commented 2 years ago

try replace XCTAutomationSupport.framework with a lower version framework. backup your framework first. here is xcode13.0: XCTAutomationSupport.framework.zip

Edwick-Raj commented 2 years ago

@geron-cn Hey, do u have the XCTAutomationSupport.framework with lower version for tvos?

geron-cn commented 2 years ago

@geron-cn Hey, do u have the XCTAutomationSupport.framework with lower version for tvos?

here is xcode13.0 tvos framework: XCTAutomationSupport.framework.tvos.zip

Pycoder0901 commented 2 years ago

error build: Cannot link directly with dylib/framework, your binary is not an allowed client of /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/XCTAutomationSupport.framework/XCTAutomationSupport for architecture arm64

nicole1010 commented 1 year ago

您好,您这个xcode13的XCTAutomationSupport.framework.zip,解压后长这样—— image

正常的XCTAutomationSupport.framework看起来是文件夹。 请问是不是我解压的不对?

qingtianwaa commented 1 year ago

您好,您这个xcode13的XCTAutomationSupport.framework.zip,解压后长这样—— image

正常的XCTAutomationSupport.framework看起来是文件夹。 请问是不是我解压的不对?

右击XCode展开包内容,一层层找到对应的XCTAutomationSupport.framework,然后复制并替换到XCode14对应的路径下就好了,我昨天也是这么做的。但是记得把XCode14原来的XCTAutomationSupport.framework 备份下。

nicole1010 commented 1 year ago

@qingtianwaa 您好,我这是下载zip包解压后文件显示成 xcode. 内容好像不对?应该是一个.framework。 请问您那边解压后显示的是啥?

geron-cn commented 1 year ago

更新到最新版本,重新执行 pod install 。