Cocoapods: Error validating private spec

Created on 22 Oct 2015  路  10Comments  路  Source: CocoaPods/CocoaPods

I have been using development pods for a good while now, but I actually want to have dependencies between my (private) pods, and as far as I know, creating private pods is the only solution for that (as you cannot specify a local pod in the .podspec file as a dependency...).

So I followed this guide https://guides.cocoapods.org/making/private-cocoapods.html, created the specs repo and added one of my development pods. Worked like a charm. Now, here is the thing: When I try to add another dev repo, upon linting

pod repo push my-specs [MY_PRIVATE_REPO].podspec  --verbose --sources='[email protected]:[Bitbucket_Username]/specs.git,https://github.com/CocoaPods/Specs' --allow-warnings

it gives me the following errors:

Summary:

- NOTE  | [iOS] xcodebuild:  : error: Not enough arguments provided; where is the input document to operate on?

Excerpt of --verbose validation output:

CompileStoryboard [MY_PRIVATE_REPO]/Pod/Classes/Browser.storyboard
    cd /var/folders/06/8yhn6qhn73ggckqptybrtbjm0000gn/T/CocoaPods/Lint/Pods
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/Cellar/android-sdk/android-ndk-r9d/:/usr/local/Cellar/ant/1.9.5/libexec/bin:/Users/thecritic/android-sdks/tools:/Users/thecritic/android-sdks/platform-tools:/Users/thecritic/android-sdks:/Users/thecritic/Downloads/cocos2d-x-3.6/templates:/Users/thecritic/Downloads/cocos2d-x-3.6/tools/cocos2d-console/bin:/usr/local/php5/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    export XCODE_DEVELOPER_USR_PATH=/Applications/Xcode.app/Contents/Developer/usr/bin/..
    /Applications/Xcode.app/Contents/Developer/usr/bin/ibtool --errors --warnings --notices --module [MY_PRIVATE_REPO] --output-partial-info-plist /var/folders/06/8yhn6qhn73ggckqptybrtbjm0000gn/T/CocoaPods/Lint/build/Pods.build/Release-iphonesimulator/[MY_PRIVATE_REPO].build/Browser-SBPartialInfo.plist --auto-activate-custom-fonts --target-device iphone --target-device ipad --minimum-deployment-target 8.0 --output-format human-readable-text --compilation-directory /var/folders/06/8yhn6qhn73ggckqptybrtbjm0000gn/T/CocoaPods/Lint/Pods/[MY_PRIVATE_REPO]/Pod/Classes/Browser.storyboard
/* com.apple.ibtool.errors */
: error: Not enough arguments provided; where is the input document to operate on?

** BUILD FAILED **


The following build commands failed:
    CompileStoryboard [MY_PRIVATE_REPO]/Pod/Classes/Browser.storyboard

All 10 comments

We'll need an example pod that reproduced the issue

@segiddins Well unfortunately the thing is, I cannot disclose much of the code from that pod.

That's fine, if you can boil it down to a new pod that also demonstrates it. If not, there's really nothing that we can do.

@segiddins I created a fresh pod and added a storyboard file, nothing more... still getting the same error. here is the pod: https://bitbucket.org/melkhaiat/testpod

Thanks!

Ah so the issue here is that the storyboard needs to be a resource, not a source file.

@segiddins First of all I want to thank you for your support! So I basically add storyboards/nib files into the Assets folder for example and specify a glob in the specfile like this: spec.resources = ["Pod/Assets/*.storyboard"] ? How come my other development pod does not complain ?

No clue

Okay this seems to work, thanks!

馃帀

Was this page helpful?
0 / 5 - 0 ratings

Related issues

steffendsommer picture steffendsommer  路  3Comments

5SMNOONMS5 picture 5SMNOONMS5  路  3Comments

pallaviMN picture pallaviMN  路  3Comments

intelliot picture intelliot  路  3Comments

sonu5 picture sonu5  路  3Comments