cljsrn

tifa 2023-02-09T15:10:03.862429Z

I am using React Native 0.70.6, Krell. Is it possible to build an ios app using React Native? without using Xcode?

Abdel 2023-02-11T17:28:34.505259Z

if you want to build from the command line you can use this

xcodebuild -workspace <workspaceName> -scheme <SchemeName> build

Andrey 2023-02-20T15:26:53.631139Z

There are errors when trying to create a build. Here are my operations 1. We are in the project directory 2. Build a production build using the krell command: clj -M -m krell.main -v -co build.edn -O advanced -c 3. We get the target directory with JS files in the project directory 4. Run the command: react-native bundle --entry-file index.js --platform ios --dev false --bundle-output ios/main.jsbundle --assets-dest ios 5. Get the ios/main.jsbundle file 6. Go to the ios directory: cd ios 7. Run the command: xcodebuild -workspace rwForManager.xcworkspace -configuration Release -scheme rwForManager 8. We get a build crash with warnings: warning: Run script build phase ‘Create Symlinks to Header Folders’ will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking “Based on dependency analysis” in the script phase. (in target ‘fmt’ from project ‘Pods’)

joshmiller 2023-02-20T17:02:18.565949Z

That seems to be exclusively an issue with Xcode/iOS itself, I don’t think it’s React Native-related at all

tifa 2023-02-10T08:07:20.351369Z

@joshmiller Where can I read to write a build script?

joshmiller 2023-02-10T16:53:22.085669Z

To be honest I’m not sure, I haven’t really gone down the path of scripting my builds as far as I should.

Andrey 2023-02-22T10:28:46.323209Z

Yes you are right, thanks for your reply. In fact, releasing an application for IOS turned out to be not an easy adventure. 😀

☝️ 1
Andrey 2023-02-17T15:43:34.067709Z

I also have a problem with the build for ios, could you describe the size of the build in more detail. Nowhere does it appear how the Krell project collects on ios. Can @dnolen clarify? Or is no one in this chat using Krell for production?

joshmiller 2023-02-17T16:37:32.897689Z

Are you having trouble building the JS for iOS, or building the iOS project itself?

joshmiller 2023-02-09T17:32:10.958029Z

You’ll need to have XCode and its toolchain installed, but you can script the build to run it without ever opening the XCode app itself.