question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error while building for iOS: 'pod install' command failed.

See original GitHub issue

Environment Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI: 6.3
  • Cross-platform modules: 6.3.0
  • Android Runtime: 6.3.0
  • iOS Runtime: 6.3.0
  • Plugin(s): none

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

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:20 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
goutalliercommented, Mar 31, 2022

@alexziskind1 I tried it with 6.3.0, and had no issues.

Can you try this, Goto platforms/ios folder in your terminal and run pod install When I did that, I go something like this Screenshot 2019-12-24 at 8 34 06 AM

And after that, it was all smooth sailing for me.

☝🏻👏🏻 💯 tns build ios fails on pod install: Error: 'pod install' command failed. I found a solution, but cannot retrieve where. Sorry to the original poster, and I am not to be credited…

→ prefix pod commands with arch -x86_64, e.g.: arch -x86_64 pod install

In a nutshell:

  1. run tns build ios
  2. it will 💥 on pod install : Error: 'pod install' command failed.
  3. do as @alexziskind1 said, i.e.: goto platforms/ios folder in your terminal and run arch -x86_64 pod install

(this is due to the ffi module, used by pod, not being ported on M1)

1reaction
alexziskind1commented, Jan 10, 2020

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. https://github.com/CocoaPods/CocoaPods/issues/9476 However, it seems that after following their suggestion to update to the 1.9 beta, everything is working again.

Read more comments on GitHub >

github_iconTop Results From Across the Web

pod install failed on macOS Big sur - react native
We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by...
Read more >
NativeScript Pod Install Command Failed Error Solution
https://youtu.be/uazy0bUWj4Y Share the entire NativeScript playlist to help your friends with their native iOS and Android apps written with ...
Read more >
'pod install' command failed with code 1. : KT-50195 - YouTrack
Got this error while syncing gradle while setting up KMM project in android studio. Had xcode installed and when 'pod install' is keyed...
Read more >
Trouble with installing cocoapods | Apple Developer Forums
ERROR: Failed to build gem native extension. current directory: /Library/Ruby/Gems/2.6.0/gems/ffi-1.13.1/ ...
Read more >
How to fix “pod install” error in React Native on Mac M1
Even though you followed the official React Native docs step-by-step, you witness a build error in the pod install step. A quick Google...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found