nstudio / nativescript-cardview

:diamonds: :clubs: NativeScript widget for Material Design CardView
MIT License
282 stars 51 forks source link

Error on IOS build --ng (pod issue) #34

Closed Habeeb-mohamed closed 7 years ago

Habeeb-mohamed commented 7 years ago

I created new tns ng project

I installed the plugin

On tns build ios getting following error

Installing pods...
Analyzing dependencies
[!] Unable to satisfy the following requirements:

- `MaterialCard (~> 1.1.4)` required by `Podfile`

None of your spec sources contain a spec satisfying the dependency: `MaterialCard (~> 1.1.4)`.

You have either:
 * out-of-date source repos which you can update with `pod 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.
Processing node_modules failed. Error: Command sandbox-pod failed with exit code 1

I am using Xcode 8 tns info

┌──────────────────┬───────────────────────┬────────────────┬───────────────┐ │ Component │ Current version │ Latest version │ Information │ │ nativescript │ 2.4.0-2016-09-21-6710 │ 2.3.0 │ Up to date │ │ tns-core-modules │ 2.3.0 │ 2.3.0 │ Up to date │ │ tns-android │ │ 2.3.0 │ Not installed │ │ tns-ios │ 2.4.0-2016-9-28-1 │ 2.3.0 │ Up to date │ └──────────────────┴───────────────────────┴────────────────┴──────────────

Habeeb-mohamed commented 7 years ago

I was the issue with pod. Not with this plugin. I did the following to Resolve

pod repo remove master
git clone 'https://github.com/CocoaPods/Specs.git' master

Because while setting up the pod it took long time. We more likely to stop that and reinstall. So it will installed the specs partially.