I’m practicing capacitor js, and was able successfully to package the (html, css & js) files and build them on ‘android studio’ according to the commands on ‘https://capacitorjs.com/docs/android
‘.
Yet when i powered up macOS version 10.14 on VMware and tried to do the same steps ‘https://capacitorjs.com/docs/ios
‘ to build on Xcode, the following warnings and errors occured…
I traced the path written in the error and couldn’t find neither file nor folder named Pods….
I’m using XCode version 11.3 and did install ‘Node.js & Xcode command line tools’ as mentioned as "capacitor js requirements" on the documentation, also installed CocoaPods.
It’s my first time using macOS so I might have missed some additional steps that needed to be done.
Would be very thankful if anyone could guide me through that bug.
2
Answers
Thanks to Gereon the step that was missing is to use the command
pod install
on the 'App' folder that has the 'Podfile.txt', it will extract some extra files including the required Pods folder.App Folder After Using
pod install
If after building you faced the following error...
Just clean the build folder and run again.
To clean the build folder you can use the shortcut Command+Option+Shift+K or Menu Bar → Product → Hold Option Key → Clean build Folder.
Looks like you’ve openend the .xcodeproj file. Don’t do that, use the .xcworkspace exclusively. Also, if you don’t have a Pods folder, you probably forgot to run
pod install