IONIC – Build IOS 2023

Table of Contents

IONIC - Build IOS 2023

https://ionicframework.com/docs/developing/ios


Install Nodejs16

Phải Nodejs16 mới được, bản nodejs17 đang lỗi ERR_OSSL_EVP_UNSUPPORTED chưa có cách sửa

https://stackoverflow.com/questions/11177954/how-do-i-completely-uninstall-node-js-and-reinstall-from-beginning-mac-os-x
sudo rm -rf /usr/local/{lib/node{,/.npm,_modules},bin,share/man}/{npm,node,man1/node*}

nvm uninstall v17.4.0

// check version
node -v || node --version

// list installed versions of node (via nvm)
nvm ls

// install specific version of node
nvm install 6.9.2

// set default version of node
nvm alias default 6.9.2

// switch version of node
nvm use 6.9.1

nvm install 16.13.0

sudo ionic serve --devapp

Cordova Setup

https://ionicframework.com/docs/developing/ios

npm install -g ios-sim
ionic cordova prepare ios

Run

npm i -g native-run
ionic cordova run ios -l --external

CDVWKWebViewEngine

/cordova-plugin-ionic-webview/CDVWKWebViewEngine.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler

Fix

https://forum.ionicframework.com/t/cordova-plugin-wkwebview-engine-crashes-ios-build-duplicated-symbols/190267/3

ionic cordova plugin remove cordova-plugin-ionic-webview

Run

ionic cordova run ios -l --external

image

Leave a Reply

Your email address will not be published. Required fields are marked *