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.

Can't build an {N} 6.3.0 iOS app due to pod install failure

See original GitHub issue

Environment

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

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

8reactions
rosen-vladimirovcommented, Dec 21, 2019

Hey @shirakaba , It seems you’ve not executed pod repo update - can you execute this command and try tns prepare ios again?

3reactions
shirakabacommented, Dec 22, 2019

@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! 🎄🍺🎁

Read more comments on GitHub >

github_iconTop 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 >

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