xcodebuild -showsdks to get the SDK versions you have.
then navigate to the Xcode project folder
Build the project
xcodebuild -scheme <Xcode Project File> -sdk <SDK version name> -configuration <release type>
e.g.
xcodebuild -scheme DTZ\ Mobility -sdk iphoneos8.1 -configuration "Release"
Generate the IPA File
/usr/bin/xcrun -sdk iphoneos PackageApplication -v <Xcode project file> -o <Destinstion file psth>
e.g.
/usr/bin/xcrun -sdk iphoneos PackageApplication -v DTZ\ Mobility -o /Users/exilesoft/Documents/Chathurage/testDTZ.ipa
Error i got while building this is because our xcodebuild
parameters are wrong.
/Users/exilesoft/Documents/Mobility.client/platforms/ios/DTZ
Mobility/Plugins/com.danielcwilson.plugins.googleanalytics/UniversalAnalyticsPlugin.h:5:9:
fatal error: 'Cordova/CDV.h' file
not found#import <Cordova/CDV.h>
^1 error generated.** BUILD FAILED **