jonathanrevell edited a comment on issue #394: cocoapods cordova build ios 
fails with linker issues (works pefectly in Xcode UI)
URL: https://github.com/apache/cordova-ios/issues/394#issuecomment-414734117
 
 
   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 
$(EXPORT_PATH) -exportOptionsPlist .../ExportOptions.plist`

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org
For additional commands, e-mail: commits-h...@cordova.apache.org

Reply via email to