问题
Is it possible to open the message composer interface in the iPhone simulator in xcode? if it is can someone tell me how.. I really need it now and having hard times finding a solution how and why my code does not work on simulator. thanks.. :D
回答1:
It is not possible. This is one of the limitations of iOS Simulator. You also cannot test push notifications, iCloud, etc. If you need to test your code, you will have to join Apple's iOS Developer Program and test the app on your device. It's $99 per year. Hope this helps.
回答2:
Just as an update to this post, it's still true that you can't test these features on the iOS simulator; however, you CAN run your apps on your own personal device without having to pay for the $99/year developer license.
You can now just plug your phone in, wait for XCode to download and process some files, and then select your device from the "Devices" dropdown.
Here are a couple of resources that helped me out when getting this set up:
Xcode "Device Locked" When iPhone is unlocked
https://developer.apple.com/library/content/documentation/IDEs/Conceptual/AppDistributionGuide/LaunchingYourApponDevices/LaunchingYourApponDevices.html
来源:https://stackoverflow.com/questions/9012393/testing-sms-in-the-ios-simulator