Skip to content

iOS build fails on XCode 16 when using use_frameworks! :linkage => :static #125

@16thomas

Description

@16thomas

Description

iOS build fails on XCode 16 when using use_frameworks! :linkage => :static

Your device where the bug occurs

  • Device:
    iPhone 13

  • OS:
    iOS 18.0

  • Version
    1.7.0

Your development environment

ProductName: macOS
ProductVersion: 15.0
BuildVersion: 24A335

Also, the result of executing the command npx react-native info.
System:
OS: macOS 15.0
CPU: (8) x64 Apple M2
Memory: 40.99 MB / 16.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 20.17.0
path: ~/.nvm/versions/node/v20.17.0/bin/node
Yarn:
version: 3.6.4
path: ~/.nvm/versions/node/v20.17.0/bin/yarn
npm:
version: 10.8.2
path: ~/.nvm/versions/node/v20.17.0/bin/npm
Watchman: Not Found
Managers:
CocoaPods:
version: 1.14.3
path: /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 24.0
- iOS 18.0
- macOS 15.0
- tvOS 18.0
- visionOS 2.0
- watchOS 11.0
Android SDK: Not Found
IDEs:
Android Studio: 2024.1 AI-241.19072.14.2412.12360217
Xcode:
version: 16.0/16A242d
path: /usr/bin/xcodebuild
Languages:
Java:
version: 11.0.16.1
path: /usr/bin/javac
Ruby:
version: 3.3.5
path: /opt/homebrew/opt/ruby/bin/ruby
npmPackages:
"@react-native-community/cli": Not Found
react: Not Found
react-native: Not Found
react-native-macos: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: true
newArchEnabled: false
iOS:
hermesEnabled: true
newArchEnabled: false

To Reproduce

Steps to reproduce the behavior:

  1. Go to Podfile in example app -> example/ios/Podfile
  2. Add use_frameworks! :linkage => :static inside target 'example' do block in starting.
  3. Run pod install
  4. Build in xcode.

Expected behavior

Should build successfully.

Screenshots

Screenshot 2024-10-02 at 13 47 58

Additional context

Working fine if not using use_frameworks! :linkage => :static

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions