I'm getting an error message while trying to run an application developed in Xcode 5.1 iOS 7.1 on Xcode 6.1 for iOS 8.0. The error state that 'Unable to run app in Simulator' as show in below screenshot.
I have tried below mentioned solution but none seems to work :
Reset the content of simulator
Rebooted mac after installing Xcode 6.1.
Xcode -> Preference -> Locations -> Command Line Tools : Changed
Xcode 5.1.1 to 6.1
What might be fix?
Delete /etc/launchd.conf if it exists on your system and reboot. See Unable to boot iOS 8 Simulator
Related
I have followed the complete install guide for nativescript on a Mac (Big Sur). Also when running tns doctor everything seems fine. However, when i'am running tns build ios or tns run ios i get the following error:
error: Building for iOS Simulator, but the linked and embedded framework 'TNSWidgets.framework' was built for iOS + iOS Simulator. (in target 'projectapp' from project 'projectapp').
Could someone please tell me how to fix this. I installed nativescript 7.0.11 and
x-code 12.3
Yesterday with the Xcode update (12.3) I've got the same error, after seeing a lot of posts about this error the solution from Niko Dovidija IS THE CORRECT ONE.
My environment:
Xcode 12.3
iOS platform 6.5.3
Nativescript 6.7.8
In order to build the application in CLI update build.xconfig in iOS platform and add this line:
VALIDATE_WORKSPACE = YES
Posts about "similar" errors and didn't work for me.
Building for iOS simulator
Building for iOS simulator 'AFNetworking.framework'
So I just updated Xcode to 12.3 today, using nativescript 7.0.11 in my project and I got a simular issue. What worked for me was:
Open the platforms/ios folder using Xcode
Select "yourprojectname.xcodeproj" from the list
Select yourprojectname from the Targets
Expand Build Options and find Validate Workspace
Change to Yes
Rebuild the project
After that, I got a successful build.
Please note that I also needed to run ns platform clean ios command in order to make the build work after updating my Xcode to 12.3
My Cordova iOS builds had previously been running fine from the CLI, until I updated to macOS 10.13.4 and Xcode 9.3 (9E145). Now whenever I use
cordova run ios
The simulator will launch, but my app is not installed or run, and this message is displayed:
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.
After a minute or two, the process stops and the message then reads:
An error was encountered processing the command (domain=FBSOpenApplicationServiceErrorDomain, code=1):
The request to open "com.myapp.name" failed.
The request was denied by service delegate (SBMainWorkspace) for reason: NotFound ("Application "com.myapp.name" is unknown to FrontBoard").
Underlying error (domain=FBSOpenApplicationErrorDomain, code=4):
The operation couldn’t be completed. Application "com.myapp.name" is unknown to FrontBoard.
Application "com.myapp.name" is unknown to FrontBoard.
Has anyone encountered this message specifically after installing Xcode 9.3? I've uninstalled and reinstalled Cordova, I've tried 'erase settings' within the simulator, and I've removed and added the iOS platform from my project.
The project will successfully build and run if I open the Xcode project file directly within Xcode. So currently it just seems to be a fault from launching the simulator from the Cordova CLI.
Any other tips/tricks?
I’m having a similar issue.
seeing this after I update to XCode 9.3 and build through cli
Error Domain=IDEProfileLocatorErrorDomain Code=1 “No profiles for ‘org.oclc.digby’ were found” UserInfo={NSLocalizedDescription=No profiles for ‘org.oclc.digby’ were found, NSLocalizedRecoverySuggestion=Xcode couldn’t find any iOS Ad Hoc provisioning profiles matching ‘org.oclc.digby’. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild.}
When I bring the project up in XCode the signing is correct and not complaining.
Same issue, solved after install iOS 11.2 Simulator in Xcode preferences -> Components, then
ionic cordova run ios -l --target="iPhone-X"
Code which was working fine in xcode 6.1.1 now fails to launch the iOS 7.1 simulator in xcode 6.2 (but works fine for the iOS 8.2 sim).
Here is the command I am using:
instruments -t Automation -w /Users/USER/Library/Developer/CoreSimulator/Devices/233D1DE0-8660-4D98-8E45-5E0794CF7366 /Users/USER/Library/Developer/CoreSimulator/Devices/233D1DE0-8660-4D98-8E45-5E0794CF7366/data/Applications/APPNAME/APPNAME.app -v -l 20
This is the error returned:
instruments[2274:66214] -[UIAInstrument(UIAInstrument_Simulator) _startAgentForApp:withPID:]: Warning: Automation instrument could not locate sim tool.
That command launches the simulator and briefly shows the app's splash screen, then dumps out.
Any ideas?
You may go to xCode -> Preference -> downloads and see in iOS Simulator 7.1 is downloaded or not, if it is not downloaded then download and install it, it might work for you
I finally upgraded to Yosemite but also had this issue on Mavericks.
I downloaded xCode5.1.1 and installed moving to Applications folder and selecting "Keep both", so it renamed the Xcode.app folder to Xcode 2.app. I renamed it to Xcode5.app then.
Now starting the xCode5 and installing all the 6.x SDKs iam unable to start the simulator. It stays black screen.
When i run the iPhone Simulaotr manually from console i get lots of "Service cannot load in requested session" messages.
It tried to load *.plist files from within the /Application Support/iPhone Simulator/6.1/tmp/LaunchDeamons/com.apple.....plist, but that tmp folder is empty.
In xCode5.1.1 on preferences -> Locations i set the command line tools to xCode5.1.1.
But still i cannot load the ios6.x simulator, it works for 7+, but 6 does not load at all. Its just a black screen.
Simulators older than 7.1 will not run correctly on OS X Yosemite. If you need iOS 6.1 and 7.0 simulators, you need to install Mavericks.
Similarly, if you need the iOS 5.1 and 6.0 simulators, you need Mountain Lion.
Copied xcode application from friend and created a Single View Application. While trying to build and run the application, build succeeds while Xcode is throwing me : "iOS Simulator failed to install the application" error.
I have tried several suggestions including:
1) Reset content and Settings from ios Simulator.
2) change deployment target.
2) Close and restart Xcode
3) open ios simulator, click home key and delete any application.
4) deleted 5.0.1 xcode and installed 5.0.2 by copying from a friend.
current version of ios simulator: 7.0
Still getting "iOS Simulator failed to install the application" error. Is there any solution?