Is it possible to get the Activity app on an iPhone simulator?
Working on an Apple Watch workout app and it's a pain to keep building on my actual device in order to see the saved workouts, the simulator is a LOT faster but I can't seem to find anything about this.
It's not a programming related question so I'm sorry if this is not the correct place to ask.
Workouts performed in a Watch simulator will reflect in the Health app on the paired iPhone simulator.
To pair a Watch and iPhone simulator in Xcode 11:
Window > Devices and Simulators
Select Simulators tab
Tap '+' at the bottom left
Add an iPhone simulator and make sure the 'Paired Apple Watch' checkbox is checked
Add a Watch simulator
Start the Watch sim and record a workout. Check the Health app on the paired iPhone simulator and you should see that your Watch workout was recorded.
Related
My app is a streaming player that I pushed to AppStore Connect
In Xcode, I don't check iPad :
And Apple said :
I tried despite everything to run it on iPad Simulator on Mac, and I found no crash. The button player is OK, both on iOS 12 and 13
What's the solution ?
Building for iPhone is not meaning that it is ONLY for iPhone! iPad users still can download iPhone apps (except they need some especial feature of the phone like CoreTelephony) and Apple's testers always test apps on iPad. So try to fix the bug (that is probably not related to the device). The issue is that you Play button is not working, not the device.
you are providing screenshot for iPad also in iTunes connect to make sure if your app is only iPhone then you must add a screenshot for iPhone no need to add a screenshot for iPad just leave them empty
I have a RubyMotion iOS app and watch app. The project root contains the iOS and a subdirectory my_watch_app contains the watch app. I followed the guide. Everything is good except for when I try to run the watch app with rake watch. It says it cannot find a simulator device. The main app runs fine.
[!] Cannot find any simulator devices, please add devices in Xcode -> Window -> Devices.
UPDATE To clarify: I had watches paired with devices already. Running rake watch --trace showed that RubyMotion could not resolve a watch to use.
You should add a paired watch to your target iPhone.
Select Device and Simulators in Window menu.
Choose Simulators segmentation.
Select your target iPhone.
Click + button in PAIRED WATHES table.
Select Apple Watch model which is after series 2.
add a paired watch
I ended up deleting all simulators that Xcode 10 creates by default and trying with an iPhone 6s. In my case, the default simulator that wanted to run was the iPhone 6s but I deleted it to use an iPhone 8 by default. I kept pairing watches with the device until I found that the Apple Watch Series 2 42mm worked.
I am only able to run watch apps by pairing Apple Watch Series 2 42mm to a simulator.
I can run different simulators using device_name and specifying the iPhone device (RubyMotion launches the iPhone and Watch app at the same time). Again, the device specified must have a Apple Watch Series 2 42mm paired to be able to run rake watch device_name="{{DEVICE}}".
For my iPhone 6s simulator with a Apple Watch Series 2 42mm
rake watch device_name="iPhone 6s"
For my iPhone 8 simulator with a Apple Watch Series 2 42mm
rake watch device_name="iPhone 8"
I made an iPhone App with Xcode. The devices setting is set to "iPhone". But in iTunes Connect it is rejected because it doesn't run on the iPad.
That is weird because it is an iPhone app, but when I checked it in Xcode, I can run it with the iPad simulator,however I think that normally this is not possible with an iPhone app.
I have added pictures to make my question clearer:
So what is gone wrong and how can I fix it?
EDIT:
Picture from resolution center:
Thanks all, I Found the problem/solution:
In my info.plist there was an extra row called supported interface orientations(iPad) where the portrait mode was added.
I have no idea how this got added here but when I removed it, the problem was solved.
From the Apple iOS App Store Review Guidelines (https://developer.apple.com/app-store/review/guidelines/):
2.10 iPhone Apps must also run on iPad without modification, at iPhone resolution, and at 2X iPhone 3GS resolution
Basically, if you set an app to "Universal" it will have iPad and iPhone versions of the UI and will appear in the search results for both. If you set it to iPhone only, it will still be installable on iPads, but it doesn't appear in the search results by default. Additionally when a user does install it on an iPad it will just scale up the UI to best fit the screen. You cannot prevent your app from running on iPads.
Every app can run on the iPad no matter if it is supported or not. The option you have in Xcode is if you want to configure it to look good on the iPad using it's own storyboard. If you configure it for both iPad and iPhone your app fill get a + in the right corner of the price on the App Store and show up on iPad searches. However if you don't configure it to support iPads it'll not show up on searches of the Apple App Store, unless osmose selects iPhone only. You can easily submit your app to the App Store, without it being rejected my friend.
Hope that helps. Keep coding.
Nothing is wrong here , you can do this in debug mode for development purpose. Even you can run it on your iPad device from xCode. Don't worry about it, nothing wrong here.
I updated one of my apps to also run a little code on Apple Watch. I do not own an Apple Watch. After taking the time to do this, I found that Xcode refused to run my app on my phone, because the phone is not paired with an Apple Watch. Is it supposed to work that way? What about all of the customers who do not yet own an Apple Watch? Can they not use the app any longer?
Obvious it is. Because if you don't have an iWatch, you have to run your app on simulator only. To get iWatch simulator, click on iOS simulator -> Hardware -> External Displays, and then select Apple Watch-32mm OR Apple Watch-42mm. Firstly run your app on iPhone simulator then run iWatch app, that automatically will run on iWatch simulator.
If you just change your iphone app and run it without watch.
Click the button (it will open like drop down) of on your xcode near app run and stop buttons, just select your iphone app (its name without watchkit) and run it. It will show you just phones in selectable devices for emulators.
Other one (watchkit) show you phones + watch like "iphone 7 + Apple Watch Series 38 mm". If you select watchkit and run it. It will expect apple watch.
I have the application. This application supports iPhone only, but I can launch it on iPad. In itunesconnect I see "Your binary doesn’t support iPad. The screenshots or app video preview for iPad won’t be shown on the App Store."
So as far as I understand I shouldn't see screenshots for iPad, but I should see the application in App Store (when I look at it from iPad).
But when I search for my application in iPad I can't find it there (but for iPhone everything is OK). Why?
When search app in ipad version app store there are two categories: ipad only and iphone only. You'll find your iphone only app in iphone only category.
to change category there is navigation item button the left most one
If your application supports only iPhone in your project's Devices in General Tap then it will be available only for iPhone devices in the AppStore. You can build and run your project in iPad either from xCode or with TestFlight but it will run as if it was an iPhone app in x2 or x1 mode depending on the iPad's screen resolution.