I have just started to learn how to code iOS apps. I have made a quick app as a first test. It runs perfect in the simulator but when running on my iPhone 4s the app runs and instantly i am set back to home screen.
Heres a link to my app if you could kindly view it and see what the problem could be because I have no clue.
http://netload.in/dateiGpnBm98FTY/FirstTest.zip.htm
Thank You
Try set a Device frameworks, not a frameworks for simulator
Related
I have an iPhone application and later added support for Apple Watch (extension and watch). Now when i try to run the application from Xcode 7.1, it always launch watch application simulator and does not run iPhone application. I would like to do the other way round. When i press run/debug, xcode should launch iPhone app in simulator. Is there any way i can do this? or just disable apple watch application to run in simulator. (I have already tried disabling apple watch simulator by going to Hardware > External display > disable, but that does not help )
any guidance will be helpful.
You can run iPhone app by changing the active scheme to your iphone version.
This picture illustrate what i am saying to select from active schemes
And finally it should look like
Hope it helps....!!!
I am working on a universal application where I am stuck at one point. I was able to successfully launch my application both on iPhone and iPad but since 2-3 days, I am not able to launch my application on neither iPhone nor iPhone simulator but it runs smoothly on iPad/iPad simulator.
Also when I run my app choosing iPhone device it shows message like Running the App on iPhone simulator but I am not able to see any effect on my simulator. I am using Xcode 4.2.1 and I guess the issue is pertains to the same.
I don't know whether it is a solution or not but got a way out by reinstalling the iOS Simulator.
I have faced same problem. This probably happens when you replace the application with the newScheme/EditScheme by mistake.
Just carefully check when you run your application is there your application name appear. This will be immediate left at where you choose iPhone simulator or iPad simulator version.
I am working on this iPhone app with which you can send message to other connected device. I have gone through following tutorial
http://vivianaranha.com/apple-gamekit-bluetooth-integration-tutorial/
Everything seems to be fine. No memory leaks or anything like that. Now I installed this application on iPad and iTouch. iPad is running 4.3.5 and iTouch is running 4.2.1. I am using X Code 4.0 with iOS 4.3 as base sdk. I set my targets to 4.0 in X Code for above project (like Target->Messenger->summary->deployment target->4.0) similarly for project.
Now when I run application and try to connect it with other device, it shows only looking for nearby iOS devices and nothing happens further. But when I set deployment target to 4.3 and install same app on iPad, that iPad can detect iTouch but not able to connect it.
Can anyone tell me why is this happening and how to deal with it ?
Regards,
Sumit
Did u try using Xcode Simulator to connect your iPod Touch by Blue Tooth?
Then it can make more sure that your programming run correctly.
I created a iPhone application first and converted it to iPad version to make it a universal build. Most of the time it works fine. But sometimes my iPhone version load as iPad and iPad version launches as iPhone. Kind of mixed up. What is the cause for this? Will this be an issue in actual devices once I submit that to the app store?
Thank you
In Xcode you can select the active executable (use the drop-down in the upper-left corner). I find that sometimes it switches on me, perhaps showing iPad and requiring me to set it back to the iPhone executable for example. If this is your issue, there will not be any confusion when you're running it on an actual device.
If you are planning to submit an app to the app store, it's a very good idea (understatement) to test the app on real devices first!
I do most development testing on my iPad. When I test an iPhone app, it runs in 'compatibility' mode where the little iPhone app runs in a small window or x2 magnification. Now that I've created a universal app it runs as a native iPad app. For testing I'd like to use the simulated iPhone when I don't have an iPhone handy for testing.
How can I build the project so that the iPad will run the app in compatibility mode?
Turns out it was really simple
Get Info for the project target
Change Targeted Device Family to iPhone
You can't. If the target is 3.2 SDK, then it will always run the simulator as an iPad. So your options are to debug on a device, or configure your app to be build under 3.1.3 so that the simulator will be an iPhone (too much trouble and unreliable).
Or hope for a later release with the option.