customerio / customerio-expo-plugin

MIT License
11 stars 9 forks source link

Experiencing difficulties running npx expo prebuild -p ios command with Customerio-Expo-Plugin #87

Closed oallanmendes closed 1 year ago

oallanmendes commented 1 year ago

Hello there,

I'm experiencing difficulties while trying to execute the npx expo prebuild -p ios command with the customerio-expo-plugin.

I carefully followed the steps outlined in the Getting Started Guide, but unfortunately, I'm still encountering an error.

✔ Config synced ⚠️ Something went wrong runningpod installin theiosdirectory. Commandpod install` failed. └─ Cause: Unable to integrate the following embedded targets with their respective host targets (a host target is a "parent" target which embeds a "child" target like a framework or extension):

To provide a more comprehensive view of what's going on, I've attached a screenshot below.

image

It would be great if anyone could provide some guidance on this matter or suggest potential solutions.

Thanks in advance for your help!

xtreem88 commented 1 year ago

Hi @oallanmendes

You are getting this error because your main target sets use_frameworks to static. To fix this, you need to set ios.useFrameworks to static for customerio-expo-plugin in app.json or app.config.js. Here is an example:

"plugins": [
      [
        "customerio-expo-plugin",
        {
          "android": {
            ...
          },
          "ios": {
            "useFrameworks": "static",
            "pushNotification": {
              ...
            }
          }
        }
      ],
    ...

You can find more information in our docs here.

levibostian commented 1 year ago

Closing due to inactivity. Please, comment back if there are still problems you're encountering.