Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React Native 0.73 support #24

Closed
mozzius opened this issue Jan 4, 2024 · 4 comments
Closed

React Native 0.73 support #24

mozzius opened this issue Jan 4, 2024 · 4 comments

Comments

@mozzius
Copy link

mozzius commented Jan 4, 2024

Hello. I'm unable to update to Expo 50 due to a problem with the React Native Podfile post-install hook.

[!] An error occurred while processing the post-install hook of the Podfile.

[!] The plist file at path `/Users/samuel.newman/Documents/Other/graysky/apps/expo/ios/Info.plist` doesn't exist.


/opt/homebrew/Cellar/cocoapods/1.14.3/libexec/gems/xcodeproj-1.23.0/lib/xcodeproj/plist.rb:17:in `read_from_path'
/Users/samuel.newman/Documents/Other/graysky/node_modules/react-native/scripts/cocoapods/utils.rb:557:in `block in update_ats_in_plist'
/Users/samuel.newman/Documents/Other/graysky/node_modules/react-native/scripts/cocoapods/utils.rb:554:in `each'
/Users/samuel.newman/Documents/Other/graysky/node_modules/react-native/scripts/cocoapods/utils.rb:554:in `update_ats_in_plist'
/Users/samuel.newman/Documents/Other/graysky/node_modules/react-native/scripts/cocoapods/utils.rb:579:in `apply_ats_config'
/Users/samuel.newman/Documents/Other/graysky/node_modules/react-native/scripts/react_native_pods.rb:310:in `react_native_post_install'
/Users/samuel.newman/Documents/Other/graysky/apps/expo/ios/Podfile:57:in `block (3 levels) in from_ruby'

Seems it tries to find all Info.plist files using this code:

def self.get_plist_paths_from(user_project)
  info_plists = user_project
    .files
    .select { |p|
      p.name&.end_with?('Info.plist')
    }
  return info_plists
end

However, printing all the paths for these files shows this:

Expo.plist
Graysky/AppDelegate.h
Graysky/AppDelegate.mm
Graysky/Images.xcassets
Graysky/Info.plist
Graysky/main.m
Graysky/SplashScreen.storyboard
Graysky/noop-file.swift
Graysky/Graysky-Bridging-Header.h
Graysky.app
System/Library/Frameworks/JavaScriptCore.framework
libPods-Graysky.a
Target Support Files/Pods-Graysky/Pods-Graysky.debug.xcconfig
Target Support Files/Pods-Graysky/Pods-Graysky.release.xcconfig
Pods/Target Support Files/Pods-Graysky/ExpoModulesProvider.swift
src
assets
manifest.json
Info.plist
SafariWebExtensionHandler.swift
OpenInGrayskyExtension.appex

Since these extension files don't have the correct paths (specifically the Info.plist file), when it tries to open /ios/Info.plist it breaks.

@andrew-levy
Copy link
Owner

Thanks as always @mozzius! I'll take a look at this today. Looks like other config plugins are seeing the same thing: OneSignal/onesignal-expo-plugin#213

@mozzius
Copy link
Author

mozzius commented Jan 4, 2024

Great! I've patched react-native for now (not sure if it breaks the extension but at least it builds):

https://github.com/mozzius/graysky/blob/main/patches/react-native%400.73.1.patch

@andrew-levy
Copy link
Owner

andrew-levy commented Jan 12, 2024

@mozzius this is looking like a bug in React Native. There are a few issues and PRs related to this, check out Evans comment here facebook/react-native#38086 (comment)

I'm gona hold off on a fix for this to see if this is fixed upstream. But if not i'll make a fix

@mozzius mozzius changed the title Expo 50 support React Native 0.73 support Jan 15, 2024
@andrew-levy
Copy link
Owner

andrew-levy commented Jan 29, 2024

@mozzius This should be fixed in RN v0.73.3 once released OneSignal/onesignal-expo-plugin#213 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants