I'm developing an app for iOS and Watch OS that handle a shortcuts. The iOS app correctly handle the intent both calling the shortcuts from the Shortcuts app and by Siri. The WatchOS app should handle natively the intent and it does calling the shortcuts from the Shortcuts app (on the watch) BUT NOT calling the shortcuts with Siri.
The problem is that I'm not able to debug the watch app because:
In the simulator the shortcuts on the iOS device doesn't sync with the watchOS device: I've tried everything, also the "force sync shortcuts to watch" option. I have no shortcut on the watch and then I can't check on the simulator watch log. How can I sync shortcuts from iOS sim e watchOS sim?
Using a real iPhone device and Apple Watch the problem is reading the watch log: most of the times the Consol app on Macbook doesn't trace the log streaming (I don't know why sometimes works and other not). Where am I wrong?
Thank you in advance for your help
Current config: MacBook Pro M1, Xcode 13 beta 3, iPhone 12 Pro max with iOS 15 beta 3, Apple Watch 6 with watchOS 8 beta 3
Related
I'm building Sticker messaging application. When I try to run the app on iPhone SE simulator with iOS 10 it throws a window to select application through which Sticker app extension should run.
However, in this list there is Siri, Today and Watch app only. There is no Message app. This was working when tested on last week.
Due to this Sticker messaging app extension cannot be tested on iMessage app on simulator.
Why this is happening?
This is probably just a bug in the beta. I've found that this happens with the iPhone SE simulator but the iPhone 6S simulator works fine.
To solve this, if you run the app with one of the other options, the option to launch the Messages app should be available the next time you run the application. So run the app in the simulator, select Siri, and open the Messages app manually. Next time you run the application the option for Messages should be available.
Also you aren't running the latest Xcode beta. The latest version is Xcode 8 beta 4.
Guys from Apple who talked in 2 sessions dedicated to iMessage app and Stickers showed few demos all using iOS Simulator, but as we know it doesn't emulate camera features. When trying to install iMessage extension on real device it just opens iMessage app with latest received message without being able to tap on "Message App Store" button. I'm interested in testing my extension on real device because it's using device camera, but couldn't make it work.
Thanks.
It was a bug. After updating device to iOS 10 beta 4 and Xcode to version 8 beta 4, the extension is installed and running on device.
I am using Xcode 7. My apple watch app works fine in the simulator. It also can be successfully built on device. However, the app seems not to be installed neither on iPhone 5 or apple watch (1.0).
The iPhone and watch pair is ineligible. And it states "The OS version installed on apple watch does not support watchkit app product. I tried everything in SwampThingTom's Question, but I still change the status of the phone-watch pair. The app on phone without watch works well. The problem only comes when watch is included to test app on watch. Does it mean something is wrong with apple watch?
I am new in app developing. Can anyone help me? I appreciate any help.
Since you marked your question with watch-os-2, it is possible that this is correct and you develop against watch OS 2.
If this is the case: you can't run a watch OS 2 app on watch OS 1.
I see to ways to tolve this:
You could set your development target to iOS 8.x and Watch OS 2.
Or you could wait a few weeks until you can install the new OS version on your devices. Since developing for watch OS 2 is much more fun I'd suggest the latter.
In WWDC 2015 it is mentioned that watch supports native apps but I fail to see the option in new Xcode 7 for the way to just build an apple watch app without the companion app. Please let me know the way to do so, if it exists.
In fact, watchOS apps are linked to the iOS companion app.
In both versions, each watchOS app has two targets: WatchKit App - which contains storyboard, icons, etc - and WatchKit Extension, which contains the code.
In watchOS 1 (old WatchKit) + iOS 8 combination, WatchKit App is installed on Apple Watch, and both WatchKit Extension and iOS app are installed on user's iPhone.
In other way, in watchOS 2 + iOS 9 combination, both WatchKit App and WatchKit Extension are installed on user's Apple Watch, and iOS App is the only code and view installed on iPhone.
Running iOS app only requires one target, so it can run without Apple Watch (since the first iPhone OS).
But running watchOS apps needs both WatchKit App and WatchKit Extension. In watchOS 1 (the old WatchKit) because one is on iPhone and other on Apple Watch, so running apps need connecting between them with Bluetooth, so you have to carry your iPhone nearby. In watchOS 2, both are on Apple Watch, so running apps does not need connecting to iPhone and having iPhone nearby. You can connect them with WatchConnectivity framework included in watchOS 2 SDK (in Xcode 7).
So in watchOS 2 apps can run standalone, but they are not standalone at all. They install on Apple Watch when installing on iPhone, and they can connect with each other. When you create a new watchOS App, you must include it with your iPhone app when submitting it to the iTunes Connect.
NOTE: This makes watchOS apps faster and more reliable.
You can't build native watch apps yet. Maybe in a later build of Xcode 7, but so far all Apple has announced is that "at some point in the near future" you will be able to build a native Watch app.
In watchOS 2, watch apps are "native" in the sense that the WatchKit extension now runs on the Apple Watch instead of the user's iPhone. This means it can no longer share data with the iPhone app using shared app groups but must instead use the new Watch Connectivity framework to pass data back and forth. It also means that watch apps can be much faster and much more capable without the phone being present.
However, a watch app must still be bundled with a companion iOS app, at least for this year.
In iOS 13 it's possible to create independent watchOS application. More information can be found here. You have to download Xcode 11 to be able to create independent watchOS application.
To create it simply go to File -> New -> Project and select watchOS -> App as it's shown on a screenshot:
The following steps always make app crashes.
install 'iPhone app' from app store to my 'iPad Mini' (except for univeral app)
find any text field on the app and start using it (then keyboard pops up)
touch 'voice dictation' button on the keyboard
I guess this is iOS bug on iPad mini.
Does anyone suffered with this?
Thanks in advance.
I had the same problem but after updating my iPad mini to the latest iOS version (as of this writing, version 6.1.2), using the voice command on an iPhone app installed on the mini doesn't cause the app to crash.