-
-
Notifications
You must be signed in to change notification settings - Fork 196
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
Error while building for iOS: 'pod install' command failed. #5189
Comments
Hey, |
Alexander-Mac:test63ts3 alex$ tns prepare ios --log trace
stderr: ――― MARKDOWN TEMPLATE ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― Command
Report
Stack
Plugins
Podfileuse_frameworks!
target "test63ts3" do
# NativeScriptPlatformSection /Users/alex/Code/test63ts3/node_modules/@nativescript/core/platforms/ios/Podfile with 9.0
platform :ios, '9.0'
# End NativeScriptPlatformSection
# Begin Podfile - /Users/alex/Code/test63ts3/node_modules/@nativescript/core/platforms/ios/Podfile
# platform :ios, '9.0'
use_frameworks!
pod 'MaterialComponents/Tabs', '~> 94.5'
# End Podfile
end Error
――― TEMPLATE END ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― [!] Oh no, an error occurred. Search for existing GitHub issues similar to yours: If none exists, create a ticket, with the template displayed above, on: Be sure to first read the contributing guide for details on how to properly submit a ticket: Don't forget to anonymize any private data! Looking for related issues on cocoapods/cocoapods... Error: 'pod install' command failed.
spawn: /usr/local/Cellar/node@12/12.14.0/bin/node "/Users/alex/.npm-global/lib/node_modules/nativescript/lib/services/analytics/analytics-broker-process.js" "/Users/alex/.npm-global/lib/node_modules/nativescript/lib/bootstrap.js" |
Hi @alexziskind1, It seems that I'm also working on macOS Catalina and everything is working as expected (pod version 1.8.3). I suggest you investigate the pod related error and maybe restart your Mac. Also, do not hesitate to ping us back, if it turns out that it's NativeScript apps related issue and you have some steps to reproduce it. |
Same problem with pods here on 10.15.2. Also, running "tns prepare iOS" or "tns run iOS --provision" brings back this: #4934 |
We don't have any known issues on macOS 10.15.2 (I'm using exactly the same OS version). In order to allow us to investigate this further, follow the issue template (provide the version of your dependencies) and attach the output of the problematic commands with |
@DimitarTachev I've restarted the mac and the same problem persists. Yes, this might not be directly related to the NativeScript CLI, but the CLI depends on this and my environment is not working. Really would appreciate some help on this as at this time I'm completely stuck. |
Im not sure if all these errors are related so I'm posting here. If mods feel like my posts should be separate thread, please tell me to do so and delete my posts here. Id like to mention my other project also throws same errors and it hasn't been touched for few weeks when it was working fine. Now on 10.15.2 it doesn't seem to be the case anymore. Anyway here it goes (Mac user and project name replaced with XXXXX):
System Software Overview:
stderr: stderr:
stderr: stderr: |
@klerz, you are using a very old version of the NativeScript CLI (based on your logs - @alexziskind1, I updated my pod to 1.8.4 in order to test exactly the same setup but everything is still working as expected. Without steps for reproducing the issue, we could just suggest you try some of the workarounds from the |
That did it. No idea what happened with cli version but thank you very much for your help! |
@rosen-vladimirov @DimitarTachev Any help on getting this resolved? |
@alexziskind1 Can you try this, And after that, it was all smooth sailing for me. |
@shiv19 That doesn't help since |
Hi @rosen-vladimirov and @DimitarTachev . I’m still stuck without having a working NativeScript Dev environment. Please help. |
Hey @alexziskind1 , |
When I run |
Hey @alexziskind1 , Indeed it is concerning that there are users who are unable to use NativeScript and get in touch with this awesome technology. Based on the information you've provided, we've tried to reproduce the issue on several different machines, but without success. From the logs, the problem seems related to the Going forward, can you please try to isolate the issue in an Xcode project and see if it is reproducbile there? |
Yes, this issue is reproducible with just Xcode and a Podfile. I've opened a ticket on the cocoapods repo as you suggested and they also were surprised to see this. CocoaPods/CocoaPods#9476 |
happened same to me, on mac m1, had to do 'pod install' on a terminal with roseta, then go back to vscode and 'tns prepare ios' |
[!] No `Podfile' found in the project directory. (this is what I got) |
☝🏻👏🏻 💯 → prefix pod commands with In a nutshell:
(this is due to the |
Environment
Provide version numbers for the following components (information can be retrieved by running
tns info
in your project folder or by inspecting thepackage.json
of the project):Describe the bug
After updating to MacOS Catalina, I wanted to test out a nativescript app. I created a brand new nativescript project from the default template with typescript. Then when I try to run or build, I get the error:
'pod install' command failed.
I ran tns doctor and no problems exist. After the error, in order to troubleshoot, I've updated homebrew, node, cocopods, and ran
pod repo update
. Nothing helps so far.To Reproduce
I can easily reproduce on my machine by creating another new project.
Expected behavior
Project should build
Sample project
Hello world project created from scratch
The text was updated successfully, but these errors were encountered: