mkdir www
cp -rp artifact www/
npm install -g cordova
cordova platform add ios
First Install xcode from AppStore.
For TLDR;
xcode-select --install
brew install ios-deploy
sudo gem install cocoapods
In the cordova project directory, run
cordova requirements
If you have successfully installed all the required tools above, the result should be like:
Requirements check results for ios:
Apple macOS: installed darwin
Xcode: installed 13.4.1
ios-deploy: installed 1.11.4
CocoaPods: installed 1.11.3
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instanc
- Start Xcode.
- Open [Xcode] -> [Preferences] in the menu.
- Select Locations.
- The [Command line Tools:] list box was blank. This is the cause, so click and select the Xcode xx.x that appears.
cordova build ios
open platforms/ios/Pawket.xcworkspace/
Target: /platforms/ios/CordovaLib/Classes/Public/CDVURLSchemeHandler.m
- return contentType ? contentType : @"application/octet-stream";
+ return contentType ? contentType : [fileExtension isEqualToString:@"wasm"] ? @"application/wasm" : @"application/octet-stream";
Target: /platforms/ios/CordovaLib/Classes/Private/Plugins/CDVWebViewEngine/CDVWebViewEngine.m
- wkWebView.allowsBackForwardNavigationGestures = [settings cordovaBoolSettingForKey:@"AllowBackForwardNavigationGestures" defaultValue:NO];
+ wkWebView.allowsBackForwardNavigationGestures = [settings cordovaBoolSettingForKey:@"AllowBackForwardNavigationGestures" defaultValue:YES];
- https://developer.apple.com/forums/thread/47806
- https://help.apple.com/developer-account/#/devbfa00fef7
- Modify version in
config.xml
. - Replace files in
platforms/ios/www/
with latest package download from Azure Devops Pipelines. Alert:cordova.js
andcordova-js-src
should remain - Build release with
yarn build:release
.
- Replace files in
platforms/ios/www/
with latest package download from Azure Devops Pipelines. Alert:cordova.js
andcordova-js-src
should remain, copy from /www-backup if accidently deleted - Change version under xCode: Project Root -> General -> Targets -> Pawket -> Version/Build
- Change target to
Any iOS Device
, then: Product -> Archive