-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: can't install capacitor/ios from local repo #2097
Comments
https://github.com/ionic-team/capacitor/tree/master/example Did you follow these steps? |
I saw that. I don't want to test capacitor in the confines of an example app. I want to test it in my app. Actually, I noticed this issue while trying to install capacitor/core, capacitor/cli and capacitor/android in order to test your PR: #2045 |
Did you try changing your podfile in
Then run |
This is somewhat janky but you can also just set a postinstall hook to copy ios files over.
|
Truthfully, I have no usecase to test That said, I also cannot build a an android app even after installing I think all of this is general shortcomings of this document: Are there steps that outline how to develop on the platforms using local versions of capacitor? |
That document links to this one https://github.com/ionic-team/capacitor/blob/master/example/README.md which explains installing the pods on the IonicRunner project. I was able to pretty easily take the instructions on the example app and apply it to my own project with prior cocoa pods experience, but perhaps it could be made more clear how to use it on your own. Also the link to this document from the |
This is because ios folder is not a proper package. It's like that because CocoaPods doesn't allow pods in folders, they need to be on the root to the github repository (notice that Capacitor.podspec and CapacitorCordova.podspec are both in the root of this repository). So, what we do is, as part of the publish process, So as workaround you can run that script and then install with |
Probably worth spelling those steps out in the README so others can help out in the future. |
ios folder is a proper package now and can be installed from local repo, so removing the won't fix label |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out. |
Bug Report
Capacitor Version
Affected Platform(s)
Current Behavior
These all work:
yarn add ../../capacitor/android
yarn add ../../capacitor/core
yarn add -D ../../capacitor/cli
This does not:
yarn add ../../capacitor/ios
Sample Code or Sample Application Repo
Other Technical Details
npm --version
output:6.9.0
node --version
output:v10.16.3
pod --version
output (iOS issues only):1.8.4
The text was updated successfully, but these errors were encountered: