Note: First introspection, originally intended to a day, a little progress every day, but recently become lazy, incredibly three days no update, in this warning you friends and myself, programmers need to abstain, engage in technology to persevere, can not notwith, two days out of the sun.
Now step into the theme, the previous time using Xcode Packaging IPA file, first share the experience, and common mistakes to solve, just a little bit.
1. Create a Ionic project
NPM install-g Cordova//Installation Successful
NPM install-g Ionic//Installation Successful
NPM install-g Ios-sim
NPM install-g Ios-deploy
Ionic Platform Add iOS-ionic resources (auto-cut icon and splash pictures)--Ionic build iOS (will be
Platforms-ios folder to generate related profiles)--Ionic emulate iOS
2.xcode8 Packaging
1. Turn on the Mac terminal
2.ls (view item list) CD (enter)
3. Configure the project file
4. Select the project name. Xcodeproj (If you need to install Xcode software
5. Double-click to open the file
6. Two folders (PROJECT and TARGETS)
7.TARGETS--click on the TARGETS project-click General-Configure team-note: Xcode8 added automatic management of signatures
(automatically manage signing), can be checked on, so as not to error
8.PROJECT--click Project-click Build Settings--Receive Code sign--Configure Provisioning
Profile and Code Signing entitlements (for example, note: Xcode8 's Provisioning profile is elsewhere and requires another
Line to collect the cable)
9. Commissioning--Plug in the real machine--Device selects the real machine run (the runtime generates the archive file, and the project name. Xcodeproj
Under the same path)--Choose Edit Scheme--Run--Select release (Note: Debug mode, Release is on-line mode)
、
10. Start Packing--Choose Generic iOS Device--COMMD + b (see if it works)
11. Build Package--Product--Archive--(note: AppStore and export packaging options on the left)--general selection
A second Save for Ad Hoc Deployment
Note: (frequently encountered problems and solutions)
1. The build must be before the commit runs
2. Ionic bug:Error:Source path does not exist:resources/ios/icon/[email protected]
Reason: The corresponding icon is missing
Solution: Ionic Resources
3. Execute command: Ionic platform add iOS or Ionic platform add Android times error:spawn eacces Error
Cause: The newly created app did not add the Hooks folder:
Solution: Execute commands to add Ionic hooks add
4.error:error code command:xcodebuild with args
Solution: Ionic Platform Remove iOS ionic platform add iOS or Cordova platform update iOS
iOS System IPA file packaging process detailed and frequently asked questions processing