Unable launch app - Error : Building for iOS, but the linked framework 'CocoaAsyncSocket.framework' was built for tvOS + tvOS Simulator when running real device
See original GitHub issueThe problem
I am not able to launch app in OS X / real device . This used to work till I update my xcode today. There are no changes in the script .
Environment
Appium 1.15.1 Mac OS X Catalina 10.15.4 XCode 11.4 (11E146)
- Appium version (or git revision) that exhibits the issue: Appium 1.15.1
- Last Appium version that did not exhibit the issue (if applicable): Appium 1.15.1
- Desktop OS/version used to run Appium: Mac OS X Catalina 10.15.4
- Node.js version (unless using Appium.app|exe): 12.11.1
- Npm or Yarn package manager:
- Mobile platform/version under test: OS X 12.4.5
- Real device or emulator/simulator: Real Device / iPhone 6
- Appium CLI or Appium.app|exe: Both - CLI and Appium app
Details
Launch Appium Desktop Go to App Inspector Start Session (I am using Netflix as an example) in real device from Appium Desktop
If necessary, describe the problem you have been experiencing in more detail. This used to work before I update XCode today.
Link to Appium logs
Create a GIST which is a paste of your full Appium logs, and link them here. https://gist.github.com/ivantay2003/f1dc3362e0fc84bd1f6ce69392a84133
Do NOT paste your full Appium logs here, as it will make this issue very long and hard to read! If you are reporting a bug, always include Appium logs!
Code To Reproduce Issue [ Good To Have ]
- Launch Appium Desktop app
- Go to Inspector
- Start session
Error (see log) This used to work before i update my xcode. It is repro on both the app and cli.
Please remember that with sample code it’s easier to reproduce the bug and it’s much faster to fix it.
Please git clone https://github.com/appium/appium and from the sample-code
directory, use one of your favourite languages and sample apps to reproduce the issue.
In case a similar scenario is missing in sample-code, please submit a PR with one of the sample apps provided.
Issue Analytics
- State:
- Created 3 years ago
- Comments:37 (7 by maintainers)
Top GitHub Comments
Hi, Iam having the same issue getting the error error: Building for iOS Simulator, but the embedded framework ‘CocoaAsyncSocket.framework’ was built for iOS + iOS Simulator. (in target ‘WebDriverAgentRunner’ from project ‘WebDriverAgent’) error: Building for iOS Simulator, but the embedded framework ‘YYCache.framework’ was built for iOS + iOS Simulator. (in target ‘WebDriverAgentRunner’ from project ‘WebDriverAgent’)
Xcode: 12.3 Appium Version:1.18.3 ,MAC OS: Catalina 10.15.6
Could please help me out the resolve
I fixed this issue by reinstall the latest appium. I delete off the carthage and reinstall it. I document the steps of setting up here:
https://medium.com/@ivantay2003/setting-up-appium-in-os-x-ecd9e7108a9c
The one by @Whiperdief works for me (but the last update i had was in March back). I will update this in my doc