Skip to content

pod install failing: Unable to install vendored xcframework weak-node-api for Pod react-native-node-api, because it contains both static and dynamic frameworks. #307

@kraenhansen

Description

@kraenhansen

Steps to reproduce

npx create-expo-app --template default@53 
cd expo53
npm i react-native-node-api
npx expo prebuild

Yields

 Something went wrong running `pod install` in the `ios` directory.
Command `pod install` failed.
└─ Cause: Unable to install vendored xcframework `weak-node-api` for Pod `react-native-node-api`, because it contains both static and dynamic frameworks.

Investigations

Initial investigations show that the Xcframwork contains only dynamic libraries:

file node_modules/react-native-node-api/weak-node-api/weak-node-api.xcframework/**/weak-node-api

Yeilds

node_modules/react-native-node-api/weak-node-api/weak-node-api.xcframework/ios-arm64-simulator/weak-node-api.framework/weak-node-api:           Mach-O 64-bit dynamically linked shared library arm64
node_modules/react-native-node-api/weak-node-api/weak-node-api.xcframework/ios-arm64/weak-node-api.framework/weak-node-api:                     Mach-O 64-bit dynamically linked shared library arm64
node_modules/react-native-node-api/weak-node-api/weak-node-api.xcframework/macos-arm64_x86_64/weak-node-api.framework/Versions/A/weak-node-api: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit dynamically linked shared library x86_64] [arm64:Mach-O 64-bit dynamically linked shared library arm64]
node_modules/react-native-node-api/weak-node-api/weak-node-api.xcframework/macos-arm64_x86_64/weak-node-api.framework/Versions/A/weak-node-api (for architecture x86_64):     Mach-O 64-bit dynamically linked shared library x86_64
node_modules/react-native-node-api/weak-node-api/weak-node-api.xcframework/macos-arm64_x86_64/weak-node-api.framework/Versions/A/weak-node-api (for architecture arm64):      Mach-O 64-bit dynamically linked shared library arm64
node_modules/react-native-node-api/weak-node-api/weak-node-api.xcframework/tvos-arm64-simulator/weak-node-api.framework/weak-node-api:          Mach-O 64-bit dynamically linked shared library arm64
node_modules/react-native-node-api/weak-node-api/weak-node-api.xcframework/tvos-arm64/weak-node-api.framework/weak-node-api:                    Mach-O 64-bit dynamically linked shared library arm64
node_modules/react-native-node-api/weak-node-api/weak-node-api.xcframework/xros-arm64-simulator/weak-node-api.framework/weak-node-api:          Mach-O 64-bit dynamically linked shared library arm64
node_modules/react-native-node-api/weak-node-api/weak-node-api.xcframework/xros-arm64/weak-node-api.framework/weak-node-api:                    Mach-O 64-bit dynamically linked shared library arm64

Metadata

Metadata

Assignees

Labels

Apple 🍎Anything related to the Apple platform (iOS, macOS, Cocoapods, Xcode, XCFrameworks, etc.)bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions