Skip to content

Instantly share code, notes, and snippets.

@imskojs
Last active May 2, 2016 09:12
Show Gist options
  • Save imskojs/cad59a7f62dfe23fca44 to your computer and use it in GitHub Desktop.
Save imskojs/cad59a7f62dfe23fca44 to your computer and use it in GitHub Desktop.
IOS_Development.js
// FIRST TIME BUILD AND Upload
config.xml.version = VERSION;
gulp;
ionic build ios
Xcode.General.Team['Add an account...'].doSettup()
doConnectDevice().then(Xcode.General.fix_issues).then(Xcode.General.Devices = 'iPhone').doXcodeRun()
doItunesConnectLogin({clientId,password}).then(createAccountWithBundleId === config.xml.widget.id)
Xcode.Product.clean().build().archive()
Xcode.Window.Organizer.YOUR_APP.UploadToAppStore
// SETTING UP APN (PUSH)
https://developer.apple.com/library/ios/recipes/xcode_help-accounts_preferences/articles/obtain_certificates_and_provisioning_profiles.html
https://developer.apple.com/library/mac/documentation/IDEs/Conceptual/AppDistributionGuide/AddingCapabilities/AddingCapabilities.html#//apple_ref/doc/uid/TP40012582-CH26-SW11
https://github.com/argon/node-apn/wiki/Preparing-Certificates
config/ssl/{key, cert}.pem
// TROUBLE SHOOT
// identifier error
delete iPhone.YOUR_APP
Xcode.doReRun()
// Invalid Image Path - No image found at the path referenced under key “CFBundleIconFile”: Icon.png
delete patforms.ios.PROJECT_NAME.PROJECT_NAME_info.plist['<key>CFBundleIconFile</key><string>icon.png</string>']
XCode.reRun().then(archive())
// bitcode error
XCode.BuildSettings.BuildOptions.EnableBitcode = 'No'
// The data couldn’t be read because it isn’t in the correct format.
// Unable to read project '한글앱이름'.xcodeproj
IonicProject.config.xml.name = 'EnglishAppName'
terminal.IonicProjectRoot('ionic build ios')
XCode.YOUR_APP_NAME/Resources/YOUR_APP_NAME-info.plist.BundleDisplayName = '한글앱이름'
// Not runnable, or when ran it only builds
XCode.UpperLeftCorner.changeFromTo('cordovaLib', 'YOUR_APP_NAME').reRun();
// Not on Any Development Teams
Xcode.Preferences.Accounts.deleting(account).addBack(account)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment