I finally managed to export ipa files via xcodebuild. Since the xctool is built upon xcodebuild, this answer might help. First of all, when you create an extension, the extension's target will be embedded into your main app's scheme. So, there is no need to use two schemes. Then, in your project settings page, create a new configuration, say (project settings) (the build settings of one target) Then set the right provisioning profiles for your targets (And you'd better set the Next step, you can archive your app using xcodebuild with the new configuration you just created above:
In this step, the codesign will sign two of your targets separately by the provisioning profiles you specified. Finally, export the
Notice that
|
|