This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-02-09
Channels
- # announcements (26)
- # babashka (4)
- # beginners (17)
- # calva (21)
- # cider (13)
- # clerk (17)
- # clj-commons (23)
- # clj-kondo (3)
- # cljdoc (47)
- # cljsrn (10)
- # clojure (123)
- # clojure-belgium (2)
- # clojure-dev (25)
- # clojure-europe (34)
- # clojure-gamedev (2)
- # clojure-italy (1)
- # clojure-nl (3)
- # clojure-norway (4)
- # clojure-uk (4)
- # clojurescript (86)
- # cursive (12)
- # datahike (2)
- # datomic (2)
- # emacs (4)
- # fulcro (6)
- # funcool (15)
- # instaparse (1)
- # integrant (11)
- # jobs (1)
- # joyride (9)
- # kaocha (3)
- # membrane (8)
- # off-topic (1)
- # pathom (4)
- # practicalli (2)
- # quil (1)
- # rdf (1)
- # reagent (9)
- # remote-jobs (1)
- # shadow-cljs (27)
- # spacemacs (4)
- # specter (1)
- # sql (11)
- # tools-deps (55)
- # vim (1)
I am using React Native 0.70.6, Krell. Is it possible to build an ios app using React Native? without using Xcode?
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.
@U0E1JV8GK Where can I read to write a build script?
To be honest I’m not sure, I haven’t really gone down the path of scripting my builds as far as I should.
if you want to build from the command line you can use this
xcodebuild -workspace <workspaceName> -scheme <SchemeName> build
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?
Are you having trouble building the JS for iOS, or building the iOS project itself?
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’)
That seems to be exclusively an issue with Xcode/iOS itself, I don’t think it’s React Native-related at all