CocoaPods command not found from Maven on Linux (CocoaPods is successfully installed)

314 views
Skip to first unread message

P5music

unread,
May 21, 2021, 6:24:51 AM5/21/21
to CodenameOne Discussions
I installed ruby and CocoaPods on my Linux system (Arch Garuda) to be able to create the XCode snapshot project for my app. This could allow me to just run XCode and iOS simulator on OSX, creating the project on Linux.

I launched the local build for XCode but
I got

    Please install Cocoapods in order to generate Xcode projects.  E.g. 'sudo gem install cocoapods'.  See https://cocoapods.org/
java.io.IOException: Cannot run program "/usr/local/bin/pod" (in directory "."):

the pod command is recognized from terminal
but it seems that 
the internal configuration of maven files points to another location.
It is reasonable. This is an attempt to use cocoapods on Linux, but until XCode is involved, it could work.
Am I wrong?
How to change the maven settings so that it call the right commands?
If it is not directly possible, could it be possible with some modifications from CodenameOne part?
Thanks in advance

Steve Hannah

unread,
May 21, 2021, 7:53:08 AM5/21/21
to codenameone...@googlegroups.com
Linux isn't a supported platform for the Xcode project target.  The process assumes that it is running on a Mac with Xcode.  Installing cocoapods on Linux won't work around this.  It requires a mac.

--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/ca599f54-04db-4155-8245-600b4acbc3een%40googlegroups.com.


--
Steve Hannah
Software Developer
Codename One

P5music

unread,
May 21, 2021, 9:11:29 AM5/21/21
to CodenameOne Discussions
It's my curiosity.
It assumes that it is running on a Mac, of course.
I guess that something other than CocoaPods is necessary, for example something from XCode.
But I wonder, the output is just source code, so why could it not be produced in a Linux environment?
I am talking in principle, I know you are busy and cannot create another project target like "XCode build on Linux".
But would it be possible? Maybe there is something that can be renounced and post-poned to the XCode real compiling.
It would be very useful to create the XCode project in Linux and then just move the snapshot to the OSX machine, at least in some cases.
Also it could be useful creating something like the remote simulator "trick" by Microsoft, that I think bypass the XCode step, although it is operated under the hood.

Regards

Shai Almog

unread,
May 21, 2021, 11:17:27 PM5/21/21
to CodenameOne Discussions
We use some 3rd party tools that are not our own. Our code might also make some assumptions without realizing since we never tested on Linux.
Reply all
Reply to author
Forward
0 new messages