unable to run expo on IOS simulator - ios

i've a problem with expo, who doesn’t work on my ios simulator,
on the simulator i have the following message : 'There was a problem running Expo'
screen of ios emulator
Everything is ok on android emulator, i tried to reinstall expo on my mac and iphone emulator, i check a lot of post but i didn’t see exactly the same error,
this issue May be due to the fact that I changed my computer and that I copied all my files from the old computer.
if anybody can help me, I would be grateful
thx u.

Have you tried deleting the expo folder in the project?

Related

Unable to install the iOS application

I have tested the application on many devices, it's working fine, but i am getting a weird error while installing the same app in iPhone 8(iOS 12.1).
Refer the screenshot for better reference:
I tried restarted the iPhone as well as the mac system, but nothing seems to be working.
just quit the simulator and clean your project then build and re-run your app in that if you do not have a physical device.
But if you have a physical device please reboot your iPhone and then clean project and re-run your project as above.
Hope it will work fine for you...! thank you
This was a provisioning profile issue as i was trying to install the application without registering the device. Once i registered the device, it starts working fine.

Invalid Device State - Xcode/iOS Simulator error

Problem: I cannot simulate an Apple watch interface. Whenever I try and test my Apple watch app on the iPhone 6 simulator, Xcode successfully finishes and builds the app, attempts at opening simulator and fails with an error message which reads 'Invalid Device State'.
I believe simulator has a watch simulator that opens along with the compatible iPhone simulator models that can communicate with Apple watch (example: iPhone 6) Although I have yet to see it work. I have built a universal interface for iPad and iPhone and another for the watch, so it's not a matter of the app being for the wrong device. Whenever I test on my actual iPhone I can test the universal interface successfully.
I'm using Xcode 6.2 on iMac OS X 10.10.3
I have tried restarting Xcode/Computer. I can't seem to find any other mention of 'Invalid Device State' anywhere, hopefully due to it being an obvious thing to avoid/fix that I've overlooked. Any help would be appreciated.
Force Quit xCode and restart will resolve problem.
I had come across this issue after updating Xcode 6.4 to 7.1.
Below are fixes for this :
Clean project (cmd+shift+k) as well as clean build folder
(cmd+shift+k+option)
Quit simulator and run again
Quit Xcode and Simulator and run again
Restart your Mac.
Solution 3 worked for me!
I had the same issue. Generally it is because you just update Xcode or change its name in the Applications folder.
If you just restart your computer it will work correctly.
Hope it helps !
I observed this happening when more than one Xcode app installed.
To fix this,
Launch Xcode and click preference..,
Go to "Location" Tab, Select correct options from "Command Line Tools" dropdown
Quit Xcode and relaunch it.
Run your app.
First of all, just clean the project.
Quit your project.
Quit your Xcode.
Restart Xcode.
This happens to me when I have two different Xcode versions running at the same time. Hopefully this helps you.
No need to quit, restart or even re-install. Switch to another iOS Simulator device (6s if you were using 6s plus) and voila!
Nothing worked for me on XCode 7.3.1.
Had to reinstall it to make the simulator work.
Go to applications folder. Drag drop XCode to Dustbin.
Empty dustbin contents.
Go to App Store and install XCode.
Run XCode. The simulator should work now.
I have Xcode 7.3 and Xcode 8.0 Installed.
If a am working with Xcode7.3 and opens Xcode8.0 to get some code from Xcode8.0 project.
When i run my application on Xcode7.3 So it will give me same error.
Solution is simple ForceQuit or Quit all Xcode's and open the required one.
In my case, the simulator would show an indefinite black screen whether attempting to run a project, or running the simulator directly (which should bring you to the simulated home screen). This would happen even on a newly created simulated device.
After the existing suggestions failed, the following worked for me:
Delete the Simulator
Delete XCode
Delete the Developer folder
Reinstall XCode from the app store. This requires attempting to run XCode again so that Mac OS will realize it's no longer installed.
Jus clean the project and restart Xcode. This happens to me when I have two diffent xcode versions running at the same time.
Robust fix is Just Quit your xcode and run again, hope so it will help you. This heck work for me.
On M1 Mac I've found more than 3 open simulators can cause this error. Quit the simulator app to fix this error.
I am pretty sure that in my case the simulator was corrupt after a failed language change.
Following this answer to reset the simulator worked.

iOS Simulator "could not find the SDK" and it "may need to be reinstalled"

I tried running my app today using Xcode 4.6.1 in the iPhone 6.1 simulator, however it did not work. The app built successfully but then when the simulator opened it said "iOS Simulator could not find the SDK. The SDK may need to be reinstalled." When this happened, I went to Xcode> Preferences>Downloads and it said the iOS 6.0 simulator was installed. I decided I would give the app a try in a different simulator so I installed the iOS 5.1 simulator, however the same exact message came up again. Could someone please help me solve this?
Thank you in advance and I really appreciate it.
It could be that your dock icon not pointing to:
Applications/Xcode.app/Contents/Applications/iPhone Simulator.app
Try launching the simulator from that directory or deleting Xcode and reinstalling from the Mac App Store as #cjc343 preposed.

Xcode 4.5 doesn't launch iOS application in simulator or mac app when running/debugging

Having a strange issue with XCode 4.5 on OSX 10.8.2.
When I run an application on the mac, it doesn't launch and I get the following error in console consistently.
10/01/2013 17:26:26.478 Xcode[7884]: ERROR: Failed to create an alert for ID "enabled" based on defaults: 1
When I run an iPad/iPhone app, the simulator launches, but the app just shows a blank screen. I thought there was an issue with my apps (although very unlikely) so attempted to create a vanilla mac app and iOS app. Both experience the same issues. Running/Debugging any iPad project directly on the iPad through Xcode works however.
I've attempted to:
Delete everything in ~/Library/Developer/Xcode/DerivedData/
Delete the Xcode app and download it again from the AppStore
Delete all of my Xcode preferences
Xcode Build and stop buttons also become unresponsive so I have to force quit xcode to try again.
Nothing seems to be working, Xcode works fine however on my mac pro at work and all projects build just fine! Any help would be much appreciated!
Never mind, setting the debugger to GDB instead of LLDB seems to have fixed this. It would however be good to get an answer as to why LLDB doesn't work as the default debugger and what's changed in xcode to make it no longer work as expected.

Why is newsstand my only app in IOS simulator?

At one point I had to do a timemachine recovery of everything on my iMac. Ever since then, when I open my IOS simulator, the only app it shows is Newsstand. I have upgraded to the most recent versions of xcode (4.3.3 (4E3002)) and ios simulator (5.1 (272.21)) and still see the issue. I have also tried removing ~/Library/Application\ Support\iPhone Simulator\ and that makes no difference. Has anyone ever seen this problem? What can I do to get other apps back? I really need to be able to use mobile Safari for some testing.
This happened to me before. I solved the issue by uninstalling xcode and the simulator file, which looks like the same path as yours. I then re-started my computer and re-downloaded xcode and it worked fine...
Good luck.
Just logging out and then logging back in addressed the problem for me.

Resources