본문 바로가기
Develop/iOS

WIP IOS 트러블

by 3-stack 2022. 10. 7.

react native ios build troubleshooting

 

  1. Xcode 14 build failed with manual code sign and app resource bundles

[AS-IS]

https://github.com/CocoaPods/CocoaPods/issues/11402

[TO-BE]

post_install do |installer|

    installer.pods_project.targets.each do |target|

      if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle"

        target.build_configurations.each do |config|

            config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'

        end

      end

    end

  end

 

2.

[AS-IS]

  1. cannot find the node binary. Try setting the NODE_BINARY variable in the "Bundle React Native code and images" Build Phase to the absolute path to your node binary.
  2. icu4c
    dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.67.dylib
    Referenced from: /usr/local/bin/node
    Reason: image not found

 

 

[TO-BE]

brew upgrade icu4c

brew upgrade 

brew cleanup

 

ln -s $(which node) /usr/local/bin/node

 

댓글