microsoft / react-native-macos

A framework for building native macOS apps with React.
https://microsoft.github.io/react-native-windows/
MIT License
3.48k stars 135 forks source link

Invalid Code Signing #1422

Open elmcapp opened 2 years ago

elmcapp commented 2 years ago

Environment

System:
    OS: macOS 12.4
    CPU: (8) x64 Intel(R) Core(TM) i5-1038NG7 CPU @ 2.00GHz
    Memory: 110.30 MB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 16.17.0 - /usr/local/bin/node
    Yarn: 1.22.17 - ~/.yarn/bin/yarn
    npm: 8.15.0 - /usr/local/bin/npm
    Watchman: 2022.02.07.00 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.11.3 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5
    Android SDK:
      API Levels: 23, 28, 29, 30, 31
      Build Tools: 30.0.2
      System Images: android-29 | Google Play Intel x86 Atom, android-30 | Google APIs Intel x86 Atom_64
      Android NDK: Not Found
  IDEs:
    Android Studio: 2021.1 AI-211.7628.21.2111.8193401
    Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.11 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.2 => 17.0.2 
    react-native: 0.68.2 => 0.68.2 
    react-native-macos: ^0.66.0-0 => 0.66.72

Steps to reproduce the bug

open project in Xcode then submit app to apple. I have selected code sign options and team id. I was able to submit app to apple and was able to get things up and test in TestFlight. After React Native 0.70.0 and pods library updated I have this problem.

Expected Behavior

Be able to submit app to apple

Actual Behavior

ITMS-90284: Invalid Code Signing - The executable 'deck.app/Contents/Resources/AccessibilityResources.bundle' must be signed with the certificate that is contained in the provisioning profile.

Reproducible Demo

No response

Additional context

No response

elmcapp commented 2 years ago

Is this project dead?

Saadnajmi commented 2 years ago

Not dead.. not the issue you're describing send to be an issue with Xcode and not specific to React Native macOS. I'm not sure there's something we can do about the issue at the moment.

Saadnajmi commented 2 years ago

Also I see that you're using React Native 0.70. React Native macOS is currently on 0.68. Of you have dependencies ok both React Native and React Native macOS, it may be worth making sure they're both 0.68.

elmcapp commented 2 years ago

I also had this problem on React Native 0.68 and 0.69 as well as 0.70

Saadnajmi commented 1 year ago

As it turns out, this is an issue related with the newest version of xcode across a few different repos I've seen, and we are currently interesting. I'll update when we have a better workaround / fix.

DHx64 commented 1 year ago

any updates?

Saadnajmi commented 1 year ago

Not yet, sorry. I've been focused on getting our fork up to date to React Native 0.71, where I think this issue is fixed in one of the 0.71-stable commits.