wirmachenbunt / capacitor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

i'm using brew on osx terminal to install things https://brew.sh/index_de

and via brew i installed node.js brew install node

and you need xcode with ios installed

capacitor

#create folder

mkdir myCapProject

#go to folder

cd myCapProject

#setup capacitor project

npm init @capacitor/app

cd my-app

npm i @capacitor/ios

brew install cocoapods #install cocoapods

npx cap add ios

#if you get an error like xcode-select: error: tool 'xcodebuild' requires Xcode #delete ios folder in the project #and run the following command

sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

#and run npx cap add ios again

npm run build

npx cap sync

npx cap open ios

#copy cables files to public folder if cables CLI is installed

cables --export xOit4e -d /Users/chris/Desktop/capacitorTest/my-app/ios/App/App/public -c

edit index.html and add

allowLocalFileAccess:true,

image

About