OneSignal / onesignal-expo-plugin

The OneSignal Expo plugin allows you to use OneSignal without leaving the managed workflow. Developed in collaboration with SweetGreen.
Other
153 stars 49 forks source link

[Bug]: OneSignalExtension' (no such file) #187

Closed Sigve84 closed 1 year ago

Sigve84 commented 1 year ago

What happened?

The solution crashes. vanilla Expo project. Does not help to change version of one-signal

Steps to reproduce?

Using React native expo:

Build successfully, but fails below: 

commands i am running: 
npx expo prebuild --platform ios
npx expo run:ios   

Termination Reason: DYLD 1 Library missing
Library not loaded: @rpath/OneSignalExtension.framework/OneSignalExtension
Referenced from: <62EF740A-94CE-3A4C-A9E9-94D3A9E6E095> /Users/USER/Library/Developer/CoreSimulator/Devices/A64F15C8-CB60-4471-B38B-4AE35013F73B/data/Containers/Bundle/Application/704A30DB-9D9A-44AB-AE18-2515CA9B45F8/FinanceApp.app/FinanceApp
Reason: tried: '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/OneSignalExtension' (no such file), '/usr/lib/swift/OneSignalExtension.framework/OneSignalExtension' (no such file, not in dyld cache), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/OneSignalExtension.framework/OneSignalExtension' (no such file), '/usr/lib/swift/OneSignalExtension.framework/OneSignalExtension' (no such file, not
(terminated at launch; ignore backtrace)

Package json:
"scripts": {
    "start": "expo start --dev-client",
    "android": "expo run:android",
    "ios": "expo run:ios",
    "web": "expo start --web",
    "test": "jest --watchAll"
  },
  "jest": {
    "preset": "jest-expo"
  },
  "dependencies": {
    "@expo/vector-icons": "^13.0.0",
    "@react-navigation/native": "^6.0.2",
    "expo": "~48.0.18",
    "expo-font": "~11.1.1",
    "expo-linking": "~4.0.1",
    "expo-router": "^1.5.2",
    "expo-splash-screen": "~0.18.2",
    "expo-status-bar": "~1.4.4",
    "expo-system-ui": "~2.2.1",
    "expo-web-browser": "~12.1.1",
    "onesignal-expo-plugin": "^1.3.0",
    "react": "18.2.0",
    "react-dom": "18.2.0",
    "react-native": "0.71.8",
    "react-native-onesignal": "^4.5.0",
    "react-native-safe-area-context": "4.5.0",
    "react-native-screens": "~3.20.0",
    "react-native-web": "~0.18.10"
  },
  "devDependencies": {
    "@babel/core": "^7.20.0",
    "@types/react": "~18.0.14",
    "jest": "^29.2.1",
    "jest-expo": "~48.0.0",
    "react-test-renderer": "18.2.0",
    "typescript": "^4.9.4"
  },

app.json:
   "plugins": [
      [
        "onesignal-expo-plugin",
        {
          "mode": "development",
          "iPhoneDeploymentTarget": "13.0"
        }
      ]
    ],

What did you expect to happen?

that the app can start

OneSignal Expo SDK version

1.3.0

Platform

No response

Relevant log output

No response

Code of Conduct

rgomezp commented 1 year ago

Howdy, perhaps try upgrading to the latest version.

rgomezp commented 1 year ago

Closing due to inactivity

danlupascu commented 8 months ago

Can we reopen? I'm having this issue as well... Tried everything, nothing works.

Here's what I tried

I'm going crazy here... I think there's obviously something wrong here, since a lot of people are having this issue.