question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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 issue

The 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 ]

  1. Launch Appium Desktop app
  2. Go to Inspector
  3. 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:closed
  • Created 3 years ago
  • Comments:37 (7 by maintainers)

github_iconTop GitHub Comments

10reactions
plomtecommented, Dec 16, 2020

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

10reactions
ivantay2003commented, May 18, 2020

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

ld: building for iOS Simulator, but linking in dylib built for iOS
Hi, I'm trying to compile the app with Xcode version 12.0 beta 6 on a simulator with iOS 14.0 and then I get...
Read more >
Xcode 12.3: Building for iOS Simulator, but the linked and ...
I have an app using a linked and embedded custom framework. The app built properly for iOS devices and simulators until Xcode 12.2....
Read more >
/usr/local/lib/node_modules/appium ... - Katalon Community
Unable launch app - Error : Building for iOS, but the linked framework 'CocoaAsyncSocket.framework' was built for tvOS + tvOS Simulator when ...
Read more >
Building for iOS Simulator, but the linked and embedded ...
When using XCode version 12.3 or above, it's possible that XCode triggers the following error: Building for iOS Simulator, but the linked and...
Read more >
【Appium踩坑】Building for iOS, but the linked ... - CSDN博客
Unable launch app - Error : Building for iOS, but the linked framework 'CocoaAsyncSocket.framework' was built for tvOS + tvOS Simulator when ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found