Problem
When building with Xcode 4.2, modules don't target the latest iOS, and since the default architecture changed, they also don't target armv6. This results in the module not being usable in a Titanium Mobile project that is targeting armv6.
Solution
The project template for modules should be updated to:
1. Also target armv6, where appropriate
2. Target the latest iOS
How To Test
- Create a module from the terminal:
titanium create --type=module --platform=iphone --name=armtesting --id=ti.armtesting
- Open the module's project in Xcode 4.2:
open armtesting/armtesting.xcodeproj
- In Xcode, verify that it does NOT say "missing base SDK" beneath the project name in the Project navigator.
- Click on the project name in the Project navigator to open up the settings.
- Under the Build Settings tab for BOTH the project and the target, verify that all references to armv7 are accompanied by armv6. It shouldn't say just "armv7" anywhere.
Pull Request
https://github.com/appcelerator/titanium_mobile/pull/625
Added a "How To Test" section.
Pull request sent.
Verified on Jeff English's machine. Looks good.
Closing bug. Verified fix on: OS: Mac OS X Lion SDK build: 1.8.0.1.RC1 Titanium Studio, build: 1.0.7.201112080131 Xcode: 4.2