Skip to content

[ios] CocoaPods could not find compatible versions for pod "ViroKit" on v2.43.4 and Expo 53 #386

@frogconn

Description

@frogconn

I found a problem on an EXPO project. If the minimum iOS version isn't specified, eas build --profile development --platform ios --local --clear-cache fails with the following error:

⚠️  Something went wrong running `pod install` in the `ios` directory.
Command `pod install` failed.
└─ Cause: CocoaPods could not find compatible versions for pod "ViroKit":
  In Podfile:
    ViroKit (from `../node_modules/@reactvision/react-viro/ios/dist/ViroRenderer/`)

Specs satisfying the `ViroKit (from `../node_modules/@reactvision/react-viro/ios/dist/ViroRenderer/`)` dependency were found, but they required a higher minimum deployment target.

pod install --repo-update --ansi exited with non-zero code: 1
$ eas build --profile development --platform ios --local --clear-cache

However, if I specify "deploymentTarget": "17.6", the eas build --profile development --platform ios --local --clear-cache command completes without any errors. The problem is that when I try to open the app after the build is finished, it crashes immediately.

Furthermore, when I try to run the project using the expo run:ios command, I get the following error:

› Copying   ios/ARDev/GoogleService-Info.plist ➜ ./GoogleService-Info.plist
› Copying   ./PrivacyInfo.xcprivacy ➜ ios/ARDev/PrivacyInfo.xcprivacy
› Compiling ARDev » SplashScreen.storyboard
› Copying   ios/ARDev/Supporting/Expo.plist ➜ ./Expo.plist

❌  (/Users/viro/mobile-app/ios/ARDev/AppDelegate.swift:1:8)

> 1 | import Expo
    |        ^ no such module 'Expo'
  2 | import React
  3 | import ReactAppDependencyProvider
  4 | 


› 1 error(s), and 1 warning(s)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions