-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
j2objcXcode task fails (pod install command) #596
Comments
Temporary solution was to add postprocessing of generated podspec's to j2objcPodspec.doLast {
println('Modifying generated podspecs to be able to run pod install')
[getPodspecDebug(), getPodspecRelease()].asList().each {
File podspec = it
String text = podspec.text.replace(
"spec.resources = 'src/main/resources/**/*'",
"# spec.resources = 'src/main/resources/**/*' <-- commented due to issue with pod install")
podspec.write(text)
}
}
|
I'm not sure what's going on here. I'm happily installing this with Cocoapods 0.39.0, the latest non-beta version (command line shown below). Are you using the same version? I suspect that this is some kind of issue with Cocoapods, though I don't know what exactly. I would try the Verify that my podspec contains the resources path:
Show that may Podspec install works (also works through plugin):
|
Yup, 0.39.0, I've tried with older versions and result was the same.
No, it's not a case, I added the comment with a temporary solution, just in case someone will face the same issue. I'll try to dig into the problem deeper in coming days and post my findings here. In any case, thanks for the reply. |
@zasadnyy - that's a creative workaround on your part. I'm interested in what else you learn on this. |
Or to be more precise
pod install
fails (see gradle output at the end).The problem is in podspec file, if I'll comment out line
spec.resources = 'src/main/resources/**/*'
inj2objc-shared-debug.podspec
j2objcXcode task finishes just fine.The strange thing is that spec.resources is defined according to documentation.
Tested with plugin version
0.5.0-alpha
and0.6.0-alpha
.Output from gradle:
The text was updated successfully, but these errors were encountered: