morrowdigital / watermelondb-expo-plugin

119 stars 30 forks source link

Error in iOS EAS Build #5

Closed kenalegata closed 1 year ago

kenalegata commented 2 years ago

I'm trying to build the project in EAS but I encounter this issue in iOS but I'm encountering

Multiple commands product '.../AccessibilityResources.bundle';

I'm using

expo: 43
react-native: 0.64.3
@morrowdigital/watermelondb-expo-plugin: 1.0.0
@nozbe/watermelondb:  0.24.0

How to fix this?

mikekeehnen commented 2 years ago

Having the same issue over here, using the following config:

    "@morrowdigital/watermelondb-expo-plugin": "^1.0.0",
    "@nozbe/watermelondb": "^0.24.0",
    "react-native": "0.69.5",
    "expo": "^46.0.10",
ChrisSimoniMBT commented 1 year ago

I was also having this issue. Applying this patch resolved it and all other issues I was having(there appeared to be more after using a different solution to resolve this specific error regarding AccessibilityResources)

https://github.com/expo/expo/issues/18784#issuecomment-1332764301

Edit: I actually retract that. I still have the fix for this issue applied to the plugin. You need to manipulate the Podfile editing with this.

.replace("post_install do |installer|", `
                post_install do |installer|
    installer.pods_project.targets.each do |target|
      if target.name == "React-Core.common-AccessibilityResources"
        target.remove_from_project
      end
    end
                `)

I am not sure if its still needed after the patch I already posted is applied to get the WatermelonDB build succeeded.