Closed emanuelb closed 4 years ago
Its a lot of work just to work around one command. See suggestion at #248 which does that as well.
Its a lot of work just to work around one command.
for workaround it's enough to pass --ignore-scripts
for yarn/npm install
, or just using alias/link to /bin/true.
The above is not for workaround, it's for making pod install
work on linux (it's a required step in order to compile the ios app) for the android app it's sure not needed, the question is how to reproduce the ios app released? is it possible to do so from linux-os? having at least some visibility into what happen in the ios build process is good :)
Fixed with #248
Currently
pod install
is used when runningnpm install
oryarn install
even when building apk, not matter what the OS is #244It might be possible to pass the
pod install
command successfully (or even build the IOS app on linux) not by cheating (such as using alias/links to /bin/true from pod command)Here is not successful try to pass
pod install
command on linux (need more work, download correct iphonesdk and probably more stuff to fix)I opened issue upstream for CocoaPods to add instructions for installation on linux (deps list, etc..) https://github.com/CocoaPods/CocoaPods/issues/9956
Bulid by:
podman build --rm -t magen_pod_install .
Run by:podman run --rm -ti magen_pod_install
Then run commands:Errors (after
Installing glog (0.3.5)
):Because line:
Running commands:
xcrun -find -sdk iphoneos cc
&xcrun -sdk iphoneos --show-sdk-path
will return: (when run underuser
)xcrun: error: unable to read configuration cache. (No such file or directory)
will return: (when run underroot
)I won't spend more time for trying to make this works, for everyone interested below might help:
maybe can be fixed by using code/files from below repos: https://github.com/darmie/ios-toolchain-based-on-clang-for-linux https://github.com/okanon/iPhoneOS.sdk
The
xcrun
tool which is built from code in repo: https://github.com/darwin-on-arm/darwin-sdk can be built using the Containerfile I created at: https://github.com/darwin-on-arm/darwin-sdk/issues/4