candlefinance / react-native-openai

OpenAI API Native bindings for React Native
https://candle.fi
MIT License
108 stars 9 forks source link

Unable to Prebuild with react-native-openai Due to CocoaPods Compatibility #7

Open Meetcpatel opened 4 months ago

Meetcpatel commented 4 months ago

I am trying to prebuild so I can use react-native-openai but it gives

I am attempting to prebuild my project in order to use the react-native-openai package. However, I am encountering the following error during the process:

[!] CocoaPods could not find compatible versions for pod "ReactNativeOpenAI":
  In Podfile:
    ReactNativeOpenAI (from `../node_modules/react-native-openai`)

Specs satisfying the `ReactNativeOpenAI (from `../node_modules/react-native-openai`)` dependency were found, but they required a higher minimum deployment target.

[!] `<PBXResourcesBuildPhase UUID=`13B07F8E1A680F5B00A75B9A`>` attempted to initialize an object with an unknown UUID. `57816F9CC4C546FBAE8A39C6` for attribute: `files`. This can be the result of a merge and the unknown UUID is being discarded.

Steps to Reproduce

  1. Add react-native-openai to the project dependencies.
  2. Attempt to prebuild the project using CocoaPods.

Expected Behavior

The project should successfully prebuild without any errors related to CocoaPods or UUID initialization.

Actual Behavior

The build process fails with errors indicating incompatible CocoaPods versions for ReactNativeOpenAI and issues with unknown UUIDs being discarded.

System Info:


System:
  OS: macOS 14.5
  CPU: (8) arm64 Apple M1
  Memory: 138.16 MB / 8.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 20.15.0
    path: ~/.nvm/versions/node/v20.15.0/bin/node
  Yarn:
    version: 1.22.19
    path: /opt/homebrew/bin/yarn
  npm:
    version: 10.7.0
    path: ~/.nvm/versions/node/v20.15.0/bin/npm
  Watchman:
    version: 2024.04.08.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.15.2
    path: /opt/homebrew/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.2
      - iOS 17.2
      - macOS 14.2
      - tvOS 17.2
      - visionOS 1.0
      - watchOS 10.2
  Android SDK: Not Found
IDEs:
  Android Studio: 2022.3 AI-223.8836.35.2231.10811636
  Xcode:
    version: 15.2/15C500b
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.10
    path: /usr/bin/javac
  Ruby:
    version: 2.6.10
    path: /usr/bin/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.73.6
    wanted: 0.73.6
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: Not found
  newArchEnabled: false
gtokman commented 4 months ago

Thanks for the report, few questions:

  1. What do you mean by prebuild? Running pod install?
  2. What RN & Cocoapods version are you on?
Meetcpatel commented 4 months ago

Yes, running pod install

CocoaPods: version: 1.15.2 react-native: installed: 0.73.6

@gtokman

mohamed-elzohery commented 3 months ago

Same Issue here

mohamed-elzohery commented 3 months ago

settings "deploymentTarget": "15.0" in app.json worked for me app.json

"plugins": [ [ "expo-build-properties", { "ios": { "deploymentTarget": "15.0" } } ], ]