- Xcode 12.4
- iPhone Xs Max 14.3
升级了Xcode12,执行 webDriverAgent -> 开始报错。
(我就知道不会顺利的💔)
报错信息
error: Building for iOS, but the embedded framework 'CocoaAsyncSocket.framework' was built for iOS + iOS Simulator.
(in target 'WebDriverAgentRunner' from project 'WebDriverAgent')
error: Building for iOS, but the embedded framework 'YYCache.framework' was built for iOS + iOS Simulator.
(in target 'WebDriverAgentRunner' from project 'WebDriverAgent')
error: Building for iOS, but the linked and embedded framework 'CocoaAsyncSocket.framework' was built for iOS + iOS Simulator.
(in target 'WebDriverAgentLib' from project 'WebDriverAgent')
error: Building for iOS, but the linked and embedded framework 'YYCache.framework' was built for iOS + iOS Simulator.
(in target 'WebDriverAgentLib' from project 'WebDriverAgent')
每次升级到 xcode 都没啥好事,实名心累💔
解决
// 别试其他乱七八糟的了,都不管用,就这个最好使 ↓
WebDriverAgent
-> Build Settings
-> Build Options
-> Validate Workspace = Yes for each target of the workspace