I did quite a bit more exploring and was able to successfully get an IPA 
exported with the following process:

Step 1: Build the app and archive using the following command
`xcodebuild clean build -workspace YourApp.xcworkspace -scheme YourApp 
-configuration Debug -destination generic/platform=iOS -archivePath 
.../YourApp.xcarchive archive 
CONFIGURATION_BUILD_DIR=.../cordova/platforms/ios/build/device 
SHARED_PRECOMPS_DIR=.../cordova/platforms/ios/build/sharedpch 
EMBEDDED_CONTENT_CONTAINS_SWIFT=YES ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES=NO 
LD_RUNPATH_SEARCH_PATHS="@executable_path/Frameworks"`


Step 2: Create a **ExportOptions.plist** file with the following information:
`<?xml version="1.0" encoding="UTF-8"?>
<!--
https://www.matrixprojects.net/p/xcodebuild-export-options-plist/
-->
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" 
"http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
<plist version="1.0">
<dict>
        <key>teamID</key>
        <string>YOUR_TEAM_ID</string>
        <key>provisioningProfiles</key>
        <dict>
            <key>YOUR.BUNDLE.ID</key>
            <string>PROVISIONING_PROFILE_UUID OR XCODE NAME</string>
        </dict>        
        <key>method</key>
        <string>ad-hoc OR app-store OR enterprise OR development</string>
        <key>uploadSymbols</key>
        <true/>
</dict>
</plist>`

Step 3: Export the archive to build the IPA
`xcodebuild -exportArchive -archivePath .../SmartPiggy.xcarchive -exportPath 
$(EXPOR_PATH) -exportOptionsPlist .../ExportOptions.plist`

[ Full content available at: https://github.com/apache/cordova-ios/issues/394 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to