Skip to content

Expo SDK 56 iOS build fails because Voltra podspecs declare iOS 16.2 while ExpoModulesCore requires 16.4 #150

@zhenyu-hong

Description

@zhenyu-hong

Summary

When testing Voltra with Expo SDK 56 preview, iOS builds fail because Voltra.podspec and VoltraWidget.podspec declare minimum iOS 16.2, while Expo SDK 56's ExpoModulesCore requires iOS 16.4.

Environment

  • voltra: 1.4.1
  • expo: 56.0.0-preview.12
  • react-native: 0.85.3
  • App iOS deployment target: 16.4
  • ios/Podfile.properties.json: "ios.deploymentTarget": "16.4"

Error

The Xcode build summary points at Swift module emission for the Voltra pod:

EmitSwiftModule normal arm64 (in target 'Voltra' from project 'Pods')
SwiftEmitModule normal arm64 Emitting module for Voltra (in target 'Voltra' from project 'Pods')

The actionable compiler error is:

node_modules/voltra/ios/app/VoltraImagePreload.swift:1:8: error: compiling for iOS 16.2, but module 'ExpoModulesCore' has a minimum deployment target of iOS 16.4

Current podspec values

Both Voltra podspecs currently declare iOS 16.2:

s.platforms = {
  :ios => '16.2',
}

Files:

  • ios/Voltra.podspec
  • ios/VoltraWidget.podspec

Temporary workaround

Using patch-package to change both podspecs to 16.4 fixes the build:

-    :ios => '16.2',
+    :ios => '16.4',

After applying the patch and rerunning pod install, the generated local podspecs contain:

ios/Pods/Local Podspecs/Voltra.podspec.json: "ios": "16.4"
ios/Pods/Local Podspecs/VoltraWidget.podspec.json: "ios": "16.4"

The iOS Debug simulator build then passes.

Expected fix

Please bump the iOS minimum deployment target in both Voltra podspecs to 16.4, or otherwise align them with Expo SDK 56 / ExpoModulesCore requirements.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions