Error while building for iOS: 'pod install' command failed.
See original GitHub issueEnvironment
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:
- Created 4 years ago
- Reactions:2
- Comments:20 (7 by maintainers)
☝🏻👏🏻 💯
tns build ios
fails onpod 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:
tns build ios
Error: 'pod install' command failed.
platforms/ios
folder in your terminal and runarch -x86_64 pod install
(this is due to the
ffi
module, used bypod
, not being ported on M1)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.