Description
We build a package for native modules, and we import a native SDK in iOS using cocoapods-art plugin for jfrog.
pod install fails with :
Unable to find a specification for SocketRocket (= 0.7.1) depended upon by React-Core
only when we use :
plugin 'cocoapods-art', :sources => [
'OUR SDK'
]
before upgrading application with RN ^0.73 we had:
Unable to find a specification for libevent (~> 2.1.12)
IMPORTANT:
we are able to solve the bug when:
- remove dependency from package.json
- rm package.json && node_modules && cd ios && pod deintegrate && rm podfile.lock && cd ..
- npm i && cd ios && pod install && cd ..
- npm i dependency
- cd ios
- put this code into podfile : plugin 'cocoapods-art', :sources => [ OUR SDK ]
- pod install
Steps to reproduce
- npm install (including dependency in package.json)
- cd ios
- pod install
React Native Version
Affected Platforms
Runtime - iOS
Output of npx react-native info
System:
OS: macOS 14.7.1
CPU: (11) arm64 Apple M3 Pro
Memory: 562.38 MB / 36.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 23.1.0
path: /opt/homebrew/bin/node
Yarn:
version: 1.22.22
path: /opt/homebrew/bin/yarn
npm:
version: 10.9.0
path: /opt/homebrew/bin/npm
Watchman:
version: 2024.11.04.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.16.2
path: /opt/homebrew/lib/ruby/gems/3.3.0/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 23.5
- iOS 17.5
- macOS 14.5
- tvOS 17.5
- visionOS 1.2
- watchOS 10.5
Android SDK: Not Found
IDEs:
Android Studio: 2024.2 AI-242.23339.11.2421.12550806
Xcode:
version: 15.4/15F31d
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.13
path: /opt/homebrew/opt/openjdk@17/bin/javac
Ruby:
version: 3.3.6
path: /opt/homebrew/opt/ruby/bin/ruby
npmPackages:
"@react-native-community/cli":
installed: 15.0.0
wanted: 15.0.0
react:
installed: 18.3.1
wanted: 18.3.1
react-native:
installed: 0.76.1
wanted: 0.76.1
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: Not found
newArchEnabled: false
Stacktrace or Logs
Found 1 module for target `ReactNativeSampleAppNew`
Auto-linking React Native module for target `ReactNativeSampleAppNew`: OUR_SDK
Framework build type is static library
[Codegen] Adding script_phases to ReactCodegen.
[Codegen] Generating ./build/generated/ios/ReactCodegen.podspec.json
[Codegen] Analyzing ReactNativeSampleAppNew/package.json
[Codegen] Searching for codegen-enabled libraries in the app.
[Codegen] The "codegenConfig" field is not defined in package.json. Assuming there is nothing to generate at the app level.
[Codegen] Searching for codegen-enabled libraries in the project dependencies.
[Codegen] Found react-native
[Codegen] >>>>> Searching for codegen-enabled libraries in react-native.config.js
[Codegen] Processing FBReactNativeSpec
[Codegen] Searching for podspec in the project dependencies.
[Codegen] Processing rncore
[Codegen] Searching for podspec in the project dependencies.
[Codegen] Generating Native Code for FBReactNativeSpec - ios
[Codegen] Generated artifacts: ReactNativeSampleAppNew/ios/build/generated/ios
[Codegen - rncore] Skipping iOS code generation for rncore as it has been generated already.
[Codegen] Creating component provider.
[Codegen] Generated provider in: ReactNativeSampleAppNew/node_modules/react-native/React/Fabric
[Codegen] Done.
/Users/vladislav.grisko/.cocoapods/repos-art/OUR_SDK/.artpodrc
Analyzing dependencies
Fetching podspec for `DoubleConversion` from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`
Fetching podspec for `RCT-Folly` from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`
Fetching podspec for `boost` from `../node_modules/react-native/third-party-podspecs/boost.podspec`
Fetching podspec for `fmt` from `../node_modules/react-native/third-party-podspecs/fmt.podspec`
Fetching podspec for `glog` from `../node_modules/react-native/third-party-podspecs/glog.podspec`
Fetching podspec for `hermes-engine` from `../node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec`
[Hermes] Using release tarball from URL: https://repo1.maven.org/maven2/com/facebook/react/react-native-artifacts/0.76.1/react-native-artifacts-0.76.1-hermes-ios-debug.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 23.3M 100 23.3M 0 0 10.0M 0 0:00:02 0:00:02 --:--:-- 10.0M
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 16.3M 100 16.3M 0 0 13.4M 0 0:00:01 0:00:01 --:--:-- 13.4M
.cocoapods/repos-art/OUR_SDK/.artpodrc
[!] Unable to find a specification for `SocketRocket (= 0.7.1)` depended upon by `React-Core`
You have either:
* out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
* mistyped the name or version.
* not added the source repo that hosts the Podspec to your Podfile.
Reproducer
https://github.com/vladgrisko
Screenshots and Videos
No response
Description
We build a package for native modules, and we import a native SDK in iOS using cocoapods-art plugin for jfrog.
pod install fails with :
Unable to find a specification for
SocketRocket (= 0.7.1)depended upon byReact-Coreonly when we use :
plugin 'cocoapods-art', :sources => [
'OUR SDK'
]
before upgrading application with RN ^0.73 we had:
Unable to find a specification for libevent (~> 2.1.12)
IMPORTANT:
we are able to solve the bug when:
Steps to reproduce
React Native Version
Affected Platforms
Runtime - iOS
Output of
npx react-native infoStacktrace or Logs
Reproducer
https://github.com/vladgrisko
Screenshots and Videos
No response