Coder Social home page Coder Social logo

Starting from Xcode 14, resource bundles are signed by default, which requires setting the development team for each resource bundle target. about react-native-safari-extension HOT 5 CLOSED

marcjimenez avatar marcjimenez commented on June 2, 2024
Starting from Xcode 14, resource bundles are signed by default, which requires setting the development team for each resource bundle target.

from react-native-safari-extension.

Comments (5)

marcjimenez avatar marcjimenez commented on June 2, 2024 1

Thanks, Andrew! This did the trick for me 💯

from react-native-safari-extension.

andrew-levy avatar andrew-levy commented on June 2, 2024

Hey @marcjimenez thanks for pointing this out! I haven't tried using this with xcode 14 or expo 46, so it's very possible this is an issue. Did you try opening xcode and setting the development team manually? I can look into this more this week to see if there's a way to automatically add the development team without having to open xcode

from react-native-safari-extension.

marcjimenez avatar marcjimenez commented on June 2, 2024

Hey Andrew Levy. Thanks for the swift response. Yup, in XCode, I need to set it manually.

All works great so far. I am currently trying to get it built through expo cloud and that's where the error is thrown.

Oddly enough, downgraded the build image but still occurs. I'll keep digging more today and see if I find anything!

from react-native-safari-extension.

andrew-levy avatar andrew-levy commented on June 2, 2024

@marcjimenez I just ran eas build -p ios --profile preview on one of my example projects, with the image field set to latest (uses xcode 14). I get the following error:

Build failed: Starting from Xcode 14, resource bundles are signed by default, which requires setting the development team for each resource bundle target.
To resolve this issue, downgrade to an older Xcode version using the "image" field in eas.json, or turn off signing resource bundles in your Podfile: https://expo.fyi/r/disable-bundle-resource-signing

Replacing the post_install command in Podfile with the following, found here https://expo.fyi/r/disable-bundle-resource-signing, seems to have fixed the issue for me, kinda a work around tho.

post_install do |installer|
    react_native_post_install(installer)
    __apply_Xcode_12_5_M1_post_install_workaround(installer)

    # This is necessary for Xcode 14, because it signs resource bundles by default
    # when building for devices.
    installer.target_installation_results.pod_target_installation_results
      .each do |pod_name, target_installation_result|
      target_installation_result.resource_bundle_targets.each do |resource_bundle_target|
        resource_bundle_target.build_configurations.each do |config|
          config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
        end
      end
    end
  end

Let me know if that works for you!

from react-native-safari-extension.

andrew-levy avatar andrew-levy commented on June 2, 2024

Great news! I'll go ahead and add that to the docs

from react-native-safari-extension.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.