Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Your project does not explicitly specify the CocoaPods master specs repo." warning is shown on pod install #48627

Open
noway opened this issue Jan 13, 2025 · 0 comments
Labels
Resolution: PR Submitted A pull request with a fix has been provided.

Comments

@noway
Copy link
Contributor

noway commented Jan 13, 2025

Description

The following warning is shown on pod install:

[!] Your project does not explicitly specify the CocoaPods master specs repo. Since CDN is now used as the default, you may safely remove it from your repos directory via `pod repo remove master`. To suppress this warning please add `warn_for_unused_master_specs_repo => false` to your Podfile.

Steps to reproduce

  1. npx @react-native-community/cli@latest init MasterSpecsRepoWarningApp
  2. "Do you want to install CocoaPods now?" - answer N
  3. cd MasterSpecsRepoWarningApp
  4. bundle
  5. cd ios
  6. bundle exec pod install
  7. Observe the warning

Alternatively, use https://github.com/noway/master-specs-repo-warning-reproducer-react-native repo.

React Native Version

0.76.6

Affected Platforms

Build - MacOS

Output of npx react-native info

info Fetching system and libraries information...
(node:80180) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
System:
  OS: macOS 15.3
  CPU: (8) arm64 Apple M1 Pro
  Memory: 711.66 MB / 32.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 22.12.0
    path: ~/.nvm/versions/node/v22.12.0/bin/node
  Yarn:
    version: 1.22.22
    path: ~/.nvm/versions/node/v22.12.0/bin/yarn
  npm:
    version: 10.9.0
    path: ~/.nvm/versions/node/v22.12.0/bin/npm
  Watchman: Not Found
Managers:
  CocoaPods:
    version: 1.16.2
    path: /Users/ilia/.rbenv/shims/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 24.2
      - iOS 18.2
      - macOS 15.2
      - tvOS 18.2
      - visionOS 2.2
      - watchOS 11.2
  Android SDK: Not Found
IDEs:
  Android Studio: 2023.2 AI-232.10300.40.2321.11567975
  Xcode:
    version: 16.2/16C5032a
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.13
    path: /usr/bin/javac
  Ruby:
    version: 3.4.1
    path: /Users/ilia/.rbenv/shims/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 15.0.1
    wanted: 15.0.1
  react:
    installed: 18.3.1
    wanted: 18.3.1
  react-native:
    installed: 0.76.6
    wanted: 0.76.6
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: true
  newArchEnabled: true

Stacktrace or Logs

$ bundle exec pod install
link_native_modules! {ios_packages: [], ios_project_root_path: "/Users/ilia/compiling/masterspecsrepowarningissue/MasterSpecsRepoWarningApp/ios", react_native_path: "../node_modules/react-native"}
Framework build type is static library
[Codegen] Adding script_phases to ReactCodegen.
[Codegen] Generating ./build/generated/ios/ReactCodegen.podspec.json
[Codegen] Analyzing /Users/ilia/compiling/masterspecsrepowarningissue/MasterSpecsRepoWarningApp/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: /Users/ilia/compiling/masterspecsrepowarningissue/MasterSpecsRepoWarningApp/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: /Users/ilia/compiling/masterspecsrepowarningissue/MasterSpecsRepoWarningApp/node_modules/react-native/React/Fabric
[Codegen] Done.
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.6/react-native-artifacts-0.76.6-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  55.3M      0 --:--:-- --:--:-- --:--:-- 55.3M
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 16.3M  100 16.3M    0     0  52.5M      0 --:--:-- --:--:-- --:--:-- 52.6M
Downloading dependencies
Installing DoubleConversion (1.1.6)
Installing FBLazyVector (0.76.6)
Installing RCT-Folly (2024.01.01.00)
Installing RCTDeprecation (0.76.6)
Installing RCTRequired (0.76.6)
Installing RCTTypeSafety (0.76.6)
Installing React (0.76.6)
Installing React-Core (0.76.6)
Installing React-CoreModules (0.76.6)
Installing React-Fabric (0.76.6)
Installing React-FabricComponents (0.76.6)
Installing React-FabricImage (0.76.6)
Installing React-ImageManager (0.76.6)
Installing React-Mapbuffer (0.76.6)
Installing React-NativeModulesApple (0.76.6)
Installing React-RCTActionSheet (0.76.6)
Installing React-RCTAnimation (0.76.6)
Installing React-RCTAppDelegate (0.76.6)
Installing React-RCTBlob (0.76.6)
Installing React-RCTFabric (0.76.6)
Installing React-RCTImage (0.76.6)
Installing React-RCTLinking (0.76.6)
Installing React-RCTNetwork (0.76.6)
Installing React-RCTSettings (0.76.6)
Installing React-RCTText (0.76.6)
Installing React-RCTVibration (0.76.6)
Installing React-RuntimeApple (0.76.6)
Installing React-RuntimeCore (0.76.6)
Installing React-RuntimeHermes (0.76.6)
Installing React-callinvoker (0.76.6)
Installing React-cxxreact (0.76.6)
Installing React-debug (0.76.6)
Installing React-defaultsnativemodule (0.76.6)
Installing React-domnativemodule (0.76.6)
Installing React-featureflags (0.76.6)
Installing React-featureflagsnativemodule (0.76.6)
Installing React-graphics (0.76.6)
Installing React-hermes (0.76.6)
Installing React-idlecallbacksnativemodule (0.76.6)
Installing React-jserrorhandler (0.76.6)
Installing React-jsi (0.76.6)
Installing React-jsiexecutor (0.76.6)
Installing React-jsinspector (0.76.6)
Installing React-jsitracing (0.76.6)
Installing React-logger (0.76.6)
Installing React-microtasksnativemodule (0.76.6)
Installing React-nativeconfig (0.76.6)
Installing React-perflogger (0.76.6)
Installing React-performancetimeline (0.76.6)
Installing React-rendererconsistency (0.76.6)
Installing React-rendererdebug (0.76.6)
Installing React-rncore (0.76.6)
Installing React-runtimeexecutor (0.76.6)
Installing React-runtimescheduler (0.76.6)
Installing React-timing (0.76.6)
Installing React-utils (0.76.6)
Installing ReactCodegen (0.76.6)
Installing ReactCommon (0.76.6)
Installing SocketRocket (0.7.1)
Installing Yoga (0.0.0)
Installing boost (1.84.0)
Installing fmt (9.1.0)
Installing glog (0.3.5)
Installing hermes-engine (0.76.6)
Generating Pods project
Setting USE_HERMES build settings
Setting REACT_NATIVE_PATH build settings
Setting SWIFT_ACTIVE_COMPILATION_CONDITIONS build settings
[Ccache]: Removing Ccache from CC, LD, CXX & LDPLUSPLUS build settings
[SPM] Cleaning old SPM dependencies from Pods project
[SPM] Adding SPM dependencies to Pods project
[Privacy Manifest Aggregation] Appending aggregated reasons to existing PrivacyInfo.xcprivacy file.
[Privacy Manifest Aggregation] Reading .xcprivacy files to aggregate all used Required Reason APIs.
Setting CLANG_CXX_LANGUAGE_STANDARD to c++20 on /Users/ilia/compiling/masterspecsrepowarningissue/MasterSpecsRepoWarningApp/ios/MasterSpecsRepoWarningApp.xcodeproj
Pod install took 8 [s] to run
Integrating client project

[!] Please close any current Xcode sessions and use `MasterSpecsRepoWarningApp.xcworkspace` for this project from now on.
Pod installation complete! There are 65 dependencies from the Podfile and 64 total pods installed.

[!] [Codegen] warn: using experimental new codegen integration

[!] hermes-engine has added 1 script phase. Please inspect before executing a build. See `https://guides.cocoapods.org/syntax/podspec.html#script_phases` for more information.

[!] Your project does not explicitly specify the CocoaPods master specs repo. Since CDN is now used as the default, you may safely remove it from your repos directory via `pod repo remove master`. To suppress this warning please add `warn_for_unused_master_specs_repo => false` to your Podfile.

Reproducer

https://github.com/noway/master-specs-repo-warning-reproducer-react-native

Screenshots and Videos

Screenshot 2025-01-12 at 7 51 09 PM
@cortinico cortinico added Resolution: PR Submitted A pull request with a fix has been provided. and removed Needs: Triage 🔍 labels Jan 13, 2025
facebook-github-bot pushed a commit that referenced this issue Jan 13, 2025
Summary:
Fix for #48627

## Changelog:

[IOS] [FIXED] - Resolve "Your project does not explicitly specify the CocoaPods master specs repo" `pod install` warning

Pull Request resolved: #48628

Test Plan:
1. Run `bundle exec pod install`
2. Observe the warning no longer showing

Reviewed By: rshest

Differential Revision: D68094563

Pulled By: fabriziocucci

fbshipit-source-id: 8f7ef67e4c5f71af65b7958e67bb58e7277a3e0e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: PR Submitted A pull request with a fix has been provided.
Projects
None yet
Development

No branches or pull requests

2 participants