Closed emanuelb closed 4 years ago
At the moment it's there as the development team is working on Mac.
But this issue is correct and we should wrap that command with a script to make sure it runs only on Mac.
we should wrap that command with a script to make sure it runs only on Mac.
No, it should run only when building ipa (ios app). it's more then useless (harmful) to run it when building apk (require more deps installed which decrease build-system security, wasted cpu cycles & bandwidth for nothing, etc...)
Currently running
yarn install
ornpm install
will probably fail on linux machine due to missingpod
command:due to
pod install
call at: https://github.com/MohGovIL/hamagen-react-native/blob/a5e1d4db92fa2d197727f26f1f4ec37f40d3d0ea/package.json#L5-L6The user may look into how to install this dep (cocoapods) on linux by: Debian
apt-get update; apt-get install -y --no-install-recommends ruby ruby-dev make gcc libcurl4 libc6-dev git; gem install cocoapods
but it's not needed when building APK (only when building IPA for IOS which require running on macosx)
fix:
pod install
command only when building IPA file, not when building APK.cd ios && pod install && cd ../
when building apk (Theios
directory not needed to exists when building APK)