Testing SMS in the iOS Simulator

我与影子孤独终老i 提交于 2019-12-08 15:56:21

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!