cljsrn

https://github.com/drapanjanas/re-natal | https://github.com/drapanjanas/re-natal/wiki/FAQ | https://github.com/condense/mercury-app/wiki | https://github.com/seantempesta/expo-cljs-template/ https://www.npmjs.com/package/create-expo-cljs-app
2021-05-01T12:00:36.098800Z

@dnolen One has to make a few changes to the Podfile for the iOS part to run on M1 mac’s.

require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

platform :ios, '14.3'

target 'App' do
  config = use_native_modules!

  use_react_native!(
    :path => config[:reactNativePath],
    # to enable hermes on iOS, change `false` to `true` and then install pods
    :hermes_enabled => false
  )

  target 'AppTests' do
    inherit! :complete
    # Pods for testing
  end

  # Enables Flipper.
  #
  # Note that if you have use_frameworks! enabled, Flipper will not work and
  # you should disable the next line.
  # use_flipper!()

  post_install do |installer|
    react_native_post_install(installer)
    installer.pods_project.build_configurations.each do |config|
      config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
      config.build_settings["IPHONEOS_DEPLOYMENT_TARGET"] = "iOS 10.0"
    end
  end

end
But it might be just as fine to have a wiki-page about it

2021-05-01T12:01:26.099200Z

it’s not krell, but a react-native thing

2021-05-01T12:03:59.100300Z

With a Podfile like that, all of the instructions from the Krell README work as you’d expect

2021-05-01T12:04:36.100700Z

One also has to use yarn as you’ve mentioned

2021-05-01T12:17:28.101500Z

Come to think of it, I also made some minor changes to the AppDelegate in order to remove some warnings

dnolen 2021-05-01T12:56:57.102100Z

Hrm I did this on M1 without any changes

naomarik 2021-05-01T17:02:05.102800Z

I had an extremely hard time trying to get a new RN app running on iOS simulator on M1 without Rosetta. Found the solution here: https://github.com/react-native-community/discussions-and-proposals/issues/295#issuecomment-826159476

naomarik 2021-05-01T17:03:05.103500Z

This is just straight pulling a new RN app and trying to run on simulator, no cljs involved.

2021-05-01T18:45:12.104100Z

@dnolen so, it worked even with use_flipper!()?

naomarik 2021-05-01T19:17:05.104600Z

@hkjels I also had to replace that with this use_flipper!({ 'Flipper' => '0.85.0' })