NatJGen execution failed. I/O error. Execution of command ‘java -jar /Users/tian/.moe/moe-sdk-1.2.0/tools/wrapnatjgen.jar --pod /var/folders/y9/3vr5l41s2t1_ptvtxhll33ch0000gn/T/temp7716716423462047233130100817614297/PodFile --output-file-path /Users/tian/Documents/work/libgdx/colorball/ios-moe/lib/Firebase.jar’ failed with error code 255
javax.management.OperationsException: xcodebuild: error: The project ‘/Users/tian/.moe/moe-sdk-1.2.0/tools/build/JPod/Pods/Pods.xcodeproj’ does not contain a target named ‘Firebase’.
What version of CocoaPods do you have installed? I think this error will occur if you are using CocoaPods 1.0+, where they introduced a requirement that a target is provided when installing the Pod.
Try using 0.39.0 instead, you can specify the version to use on the command line like this:
I wasn’t sure if this was easily configurable in MOE, so I did the following to make 0.39.0 the default:
mv /usr/local/bin/pod /usr/local/bin/pod-real
cat << EOF > /usr/local/bin/pod
/usr/local/bin/pod-real _0.39.0_ \$*
I do it follow your code, and it does not work also.
NatJGen execution failed. I/O error. Execution of command 'java -jar /Users/tian/.moe/moe-sdk-1.2.0/tools/wrapnatjgen.jar --pod /var/folders/y9/3vr5l41s2t1_ptvtxhll33ch0000gn/T/temp7450353995214729968221587153870368/PodFile --output-file-path /Users/tian/Documents/work/libgdx/colorball/ios-moe/lib/MZTimerLabel.jar' failed with error code 255
java.security.InvalidParameterException: Unsupported pod source
I didn’t think to say it, but the executable bit must be set on the file to make it executable:
chmod a+x /usr/local/bin/pod
Can you try checking where the ‘pod’ executable is installed, and where it in your PATH? This will tell you where it is being found:
You can also try running it without the script, see what it reports (assuming you’ve moved it as suggested earlier):
/usr/local/bin/pod-real _0.39.0_ --version
I had previously installed 0.39.0, I don’t know if it will get installed automatically when you provide the version on the command line…
OK, I install the 0.39. It work normal. Thank you
I use the cocoapod install a framework
when run it, has error:
/Volumes/SSD/gh-moe-master/moe/natj/natj/src/main/native/natj/ObjCRuntime.mm:1474 FAILURE: Binding class refers to class MZTimerLabel, but it can not be found.
So, I have to open xcode and add the framework into the xcode ? But i use the cocoapod install this framework. where is the MZTimerLabel.framework file ?
If we have to add some framework in xcode project, The function of remote debug in window7 is not convenience.
Sorry for my poor english. I am Chinese.
I’m not sure exactly how to add the framework to xcode. I think I ended up setting moe.xcode.generateProject = true to force it to re-create the xcode project for me, with the framework correctly included.
I don’t know about remote debugging from Windows 7, I’ve only worked on OSX.
Hi, Thank you for reply. I use libgdx develop game, and port to ios by MOE. the generateProject = false by default in libgdx project. If I set generateProject = true, The project will be wrong.
I wasn’t sure whether to start a separate issue for this, but I am experiencing the same issue, but the suggested resolution isn’t helping.
I am also trying to link the Firebase cocoapod which doesn’t appear to create the targets in the generated xcode project. The error I am seeing is:
NatJGen execution failed. I/O error. Execution of command 'java -jar /Users/dangilbert/.moe/moe-sdk-1.2.4/tools/wrapnatjgen.jar --pod /var/folders/lg/3tmyxl412h95k5_jq0570f2w0000gq/T/temp5018420917388462171218306878327494/PodFile --output-file-path /Users/dangilbert/Work/DAENTech/TimetablePlus/ios/lib/Firebase.jar' failed with error code 255
javax.management.OperationsException: xcodebuild: error: The project '/Users/dangilbert/.moe/moe-sdk-1.2.4/tools/build/JPod/Pods/Pods.xcodeproj' does not contain a target named 'Firebase'.
The generated xcode workspace is created using cocoapods v0.39.0 as evidenced by the last line in the Podfile.lock:
so even this version doesn’t seem to work.
If it makes a difference I am using Xcode 8.
Any help would be appreciated