I have project with 2 targets, one for a "lite" versione of the app and another for the "pro". When I add targets for the Apple Watch (2.0, app and notification):
- The Architectures are set to armv7k - ($ARCHS_STANDARD), this seems fine
- Valid Architectures are set to "armv7 armv7s arm64". This seems quite weird, since when I create a new project from scratch, valid architectures are also set to "armv7k", which would seem like the right one.
When I try to run the app or notification, I get the following error when compiling:
"No architectures to compile for (ARCHS=i386, VALID_ARCHS=armv7 armv7s arm64)."
It doesn't matter if I change the valid architectures to "armv7k" manually, I get a similar error with VALID_ARCHS=armv7k. The only way to test on the simulators is to add "i386" to Valid Architectures. This doesn't happen on a project started from scratch. In it both "architectures" and "valid architectures" are set to "armv7k" and I don't have to add i386 to valid arechitectures to run the Watch app or notification.
Is there an issue when adding Watch apps to an existing project? Any help would be appreciated. For the moment, in order to move forward, I have added i386 to valid architectures. I have not tested on real devices yet.
Raúl.