Can't build an {N} 6.3.0 iOS app due to pod install failure
See original GitHub issueEnvironment
tns doctor
:
$ tns doctor
✔ Getting environment information
No issues were detected.
✔ Your ANDROID_HOME environment variable is set and points to correct directory.
✔ Your adb from the Android SDK is correctly installed.
✔ The Android SDK is installed.
✔ A compatible Android SDK for compilation is found.
✔ Javac is installed and is configured properly.
✔ The Java Development Kit (JDK) is installed and is configured properly.
✔ Xcode is installed and is configured properly.
✔ xcodeproj is installed and is configured properly.
✔ CocoaPods are installed.
✔ CocoaPods update is not required.
✔ CocoaPods are configured properly.
✔ Your current CocoaPods version is newer than 1.0.0.
✔ Python installed and configured correctly.
✔ The Python 'six' package is found.
✔ Xcode version 11.3.0 satisfies minimum required version 10.
✔ Getting NativeScript components versions information...
✔ Component nativescript has 6.3.0 version and is up to date.
✔ Component tns-core-modules has 6.3.2 version and is up to date.
✔ Component tns-android has 6.3.0 version and is up to date.
✔ Component tns-ios has 6.3.0 version and is up to date.
Describe the bug
This is a build-time error. The Webpack build completes, but the native app build fails at the pod install
stage:
Installing pods...
Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "MaterialComponents/Tabs":
In Podfile:
MaterialComponents/Tabs (~> 94.5)
None of your spec sources contain a spec satisfying the dependency: `MaterialComponents/Tabs (~> 94.5)`.
You have either:
* out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
* mistyped the name or version.
* not added the source repo that hosts the Podspec to your Podfile.
Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default.
'pod install' command failed.
For more information on resolving CocoaPod issues in NativeScript read.
My platforms/ios/Podfile
looks like this:
use_frameworks!
target "sample" do
# NativeScriptPlatformSection /Users/jamie/Documents/git/react-nativescript/sample/node_modules/@nativescript/core/platforms/ios/Podfile with 9.0
platform :ios, '9.0'
# End NativeScriptPlatformSection
# Begin Podfile - /Users/jamie/Documents/git/react-nativescript/sample/node_modules/@nativescript/core/platforms/ios/Podfile
# platform :ios, '9.0'
use_frameworks!
pod 'MaterialComponents/Tabs', '~> 94.5'
# End Podfile
end
To Reproduce
git clone https://github.com/shirakaba/react-nativescript.git
cd react-nativescript
git checkout "ns-6-3"
# Build a local release of React NativeScript
cd react-nativescript && npm install && npm run build
cd ../sample
npm install
tns run ios
Expected behavior
iOS app should successfully build and run.
Sample project
See reproduction steps (which involve checking out the ns-6-3
branch of React NativeScript and running the sample app which I’ve just attempted to update to {N} v6.3.0).
Additional context
- Another pod install failure for 6.3.0: https://github.com/NativeScript/nativescript-cli/issues/5189
- A different
MaterialComponents/Tabs
issue: https://github.com/NativeScript/nativescript-cli/issues/5153 - Another different
MaterialComponents/Tabs
issue: https://github.com/NativeScript/NativeScript/issues/7928
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Trouble with installing cocoapods | Apple Developer Forums
ERROR : Error installing cocoapods: ERROR: Failed to build gem native extension. ... Could not create Makefile due to some reason, probably lack...
Read more >Flutter build ios failing with: Error running pod install
Your cocoapods installation was broken. So try removing the brew version first via "brew uninstall cocoapods" Then install cocoapods via sudo ...
Read more >CocoaPods installation failure when building for iOS
CocoaPods installation failure when building for iOS · 1. Right-click on the folder with the assembled build and click the "New Terminal at ......
Read more >Firebase Apple SDK Release Notes - Google
Index -related compile time errors when building with older Swift versions ... To use the Swift extension library, add pod 'FirebaseRemoteConfigSwift' to ...
Read more >Mobile App Messaging SDK for iOS — Regular Releases
everyConversation in a scenario when the user resolves the conversation and leaves the conversation screen quickly. Unauthorized conversations were not able to ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hey @shirakaba , It seems you’ve not executed
pod repo update
- can you execute this command and trytns prepare ios
again?@rosen-vladimirov It woooorks! Fastest issue turnaround ever 😆🙇♂️ thanks for responding at this time of night, in the holiday season, on a weekend no less!
A very Merry Christmas to you, and I have a beer with your name on it on the day we cross paths! 🎄🍺🎁