XCODE Simulator not working on devices

New to Xcode 10. I cannot use Simulator to show App on my physical d3vices iPhone X, iPad Pro, etc. Reloaded XCODE 10 App and keeps asking for keychain password which does not accept any of ones I enter so need to deny and again cannot use Simulatir outside the PC. Could having IOS 12.0.1 be the problem?S

Why do you want to use Simulator on device ? You should run the app itself, not the simulator.


Please, clarify.

Thanks Caude31,


First is to see how the app will look on my iPhone and later to actually installed on the iPhone.

So, connect the iPhone to the Mac with USB connection.


At the topleft of the XCode window, just on the right of your app name, select the target (it probably presently gives you the name of a simulator as iPhone Xs). Click there ; in the pop up, select your iPhone.


And run. The app will load and run on the iPhone, and you will be able to debug in XCode (setting break points, inspecting var, getting print logs…)

I have done all that and can select my iPhone X. Problem is cannot get past the keychain request

”codesign wants to access key “access” in your keychain. To allow this, enter the “login” keychain password.”


Took screenshot but do not see how to add picture on this post.


Thank you

>Why do you want to use Simulator on device ?


I had the same question in mind, but I think the verbiage in use means the OP can't work with their device -type- via the simulator.

>do not see how to add picture on this post.


You can add them, but we're not allowed to view them - Again, see For Best Results - Read the Label

Review this tutorial. You should find answers to the questions to install on your iPhone.


Good luck.


h ttps://codewithchris.com/deploy-your-app-on-an-iphone/

Thanks Claude


i was able to get passed the keychain password request by creating a new user/password that was able to use it for the he keychain password request.

Great. It is much better to test app on real device (you have access to all func, like GPS or others, much better than in simulator). And still have access to full debug functions if you are in debug and not release scheme.


Don't forget to close the thread.

XCODE Simulator not working on devices
 
 
Q