CocoaPods / CocoaPods/Xcodeproj
getting error when run pod install and I have install "react-native-onesignal": "^5.2.7",
- Dominant language
- Ruby
- Stars
- 2.4k
- Forks
- 488
- PR merge metrics
- No merged PRs in 30d
Description
pod install --verbose
$ /Users/mohitkadwe/.nvm/versions/node/v20.15.0/bin/node -p require.resolve( "react-native/scripts/react_native_pods.rb", {paths: [process.argv[1]]}, )
/Users/mohitkadwe/Developer/work/client/VJoin-React-Native/ios
/Users/mohitkadwe/Developer/work/client/VJoin-React-Native/node_modules/react-native/scripts/react_native_pods.rb
$ /Users/mohitkadwe/.nvm/versions/node/v20.15.0/bin/node -p require.resolve( "@react-native-community/cli-platform-ios/native_modules.rb", {paths: [process.argv[1]]}, )
/Users/mohitkadwe/Developer/work/client/VJoin-React-Native/node_modules/react-native/scripts
/Users/mohitkadwe/Developer/work/client/VJoin-React-Native/node_modules/@react-native-community/cli-platform-ios/native_modules.rb
$ /Users/mohitkadwe/.nvm/versions/node/v20.15.0/bin/node -e try {console.log(require('@react-native-community/cli').bin);} catch (e) {console.log(require('react-native/cli').bin);}
/Users/mohitkadwe/Developer/work/client/VJoin-React-Native/node_modules/@react-native-community/cli/build/bin.js
Auto-linking React Native modules for target `vjoin`: RNCAsyncStorage, RNCCheckbox, RNCClipboard, RNDateTimePicker, RNDeviceInfo, RNFS, RNGestureHandler, RNLinearGradient, RNReanimated, RNScreens, RNShare, react-native-image-picker, react-native-image-resizer, react-native-mmkv, react-native-onesignal, react-native-safe-area-context, react-native-version-check, rn-fetch-blob, and stripe-react-native
Framework build type is static library
$ /bin/mkdir -p ./build/generated/ios
[Codegen] Generating ./build/generated/ios/React-Codegen.podspec.json
Preparing
Analyzing dependencies
Inspecting targets to integrate
――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
### Command
```
/Users/mohitkadwe/.rvm/gems/ruby-3.1.2/bin/pod install --verbose
```
### Report
* What did you do?
* What did you expect to happen?
* What happened instead?
### Stack
```
CocoaPods : 1.12.1
Ruby : ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-darwin24]
RubyGems : 3.3.7
Host : macOS 15.1.1 (24B91)
Xcode : 16.1 (16B40)
Git : git version 2.39.5 (Apple Git-154)
Ruby lib dir : /Users/mohitkadwe/.rvm/rubies/ruby-3.1.2/lib
Repositories :
```
### Plugins
```
cocoapods-deintegrate : 1.0.5
cocoapods-plugins : 1.0.0
cocoapods-search : 1.0.1
cocoapods-trunk : 1.6.0
cocoapods-try : 1.2.0
```
### Podfile
```ruby
# Resolve react_native_pods.rb with node to allow for hoisting
require Pod::Executable.execute_command('node', ['-p',
'require.resolve(
"react-native/scripts/react_native_pods.rb",
{paths: [process.argv[1]]},
)', __dir__]).strip
MIN_IOS_OVERRIDE = '13.0'
if Gem::Version.new(MIN_IOS_OVERRIDE) > Gem::Version.new(min_ios_version_supported)
min_ios_version_supported = MIN_IOS_OVERRIDE
end
platform :ios, min_ios_version_supported
prepare_react_native_project!
# If you are using a `react-native-flipper` your iOS build will fail when `NO_FLIPPER=1` is set.
# because `react-native-flipper` depends on (FlipperKit,...) that will be excluded
#
# To fix this you can also exclude `react-native-flipper` using a `react-native.config.js`
# ```js
# module.exports = {
# dependencies: {
# ...(process.env.NO_FLIPPER ? { 'react-native-flipper': { platforms: { ios: null } } } : {}),
# ```
# flipper_config = ENV['NO_FLIPPER'] == "1" ? FlipperConfiguration.disabled : FlipperConfiguration.enabled
flipper_config = FlipperConfiguration.disabled
linkage = ENV['USE_FRAMEWORKS']
if linkage != nil
Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green
use_frameworks! :linkage => linkage.to_sym
end
target 'vjoin' do
config = use_native_modules!
# Flags change depending on the env values.
flags = get_default_flags()
use_react_native!(
:path => config[:reactNativePath],
# Hermes is now enabled by default. Disable by setting this flag to false.
:hermes_enabled => flags[:hermes_enabled],
:fabric_enabled => flags[:fabric_enabled],
# Enables Flipper.
#
# Note that if you have use_frameworks! enabled, Flipper will not work and
# you should disable the next line.
:flipper_configuration => flipper_config,
# An absolute path to your application root.
:app_path => "#{Pod::Config.instance.installation_root}/.."
)
target 'vjoinTests' do
inherit! :complete
# Pods for testing
end
post_install do |installer|
# https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202
react_native_post_install(
installer,
config[:reactNativePath],
:mac_catalyst_enabled => false
)
__apply_Xcode_12_5_M1_post_install_workaround(installer)
end
end
```
### Error
```
RuntimeError - `PBXGroup` attempted to initialize an object with unknown ISA `PBXFileSystemSynchronizedRootGroup` from attributes: `{"isa"=>"PBXFileSystemSynchronizedRootGroup", "exceptions"=>["7EB0A76D2CFA47AA00F67DB4"], "explicitFileTypes"=>{}, "explicitFolders"=>[], "path"=>"OneSignalNotificationServiceExtension", "sourceTree"=>""}`
If this ISA was generated by Xcode please file an issue: https://github.com/CocoaPods/Xcodeproj/issues/new
/Users/mohitkadwe/Developer/work/client/VJoin-React-Native/vendor/bundle/ruby/3.1.0/gems/xcodeproj-1.22.0/lib/xcodeproj/project/object.rb:359:in `rescue in object_with_uuid'
/Users/mohitkadwe/Developer/work/client/VJoin-React-Native/vendor/bundle/ruby/3.1.0/gems/xcodeproj-1.22.0/lib/xcodeproj/project/object.rb:349:in `object_with_uuid'
/Users/mohitkadwe/Developer/work/client/VJoin-React-Native/vendor/bundle/ruby/3.1.0/gems/xcodeproj-1.22.0/lib/xcodeproj/project/object.rb:300:in `block (2 levels) in configure_with_plist'
/Users/mohitkadwe/Developer/work/client/VJoin-React-Native/vendor/bundle/ruby/3.1.0/gems/xcodeproj-1.22.0/lib/xcodeproj/project/object.rb:299:in `each'
/Users/mohitkadwe/Developer/work/client/VJoin-React-Native/vendor/bundle/ruby/3.1.0/gems/xcodeproj-1.22.0/lib/xcodeproj/project/object.rb:299:in `block in configure_with_plist'
/Users/mohitkadwe/Developer/work/client/VJoin-React-Native/vendor/bundle/ruby/3.1.0/gems/xcodeproj-1.22.0/lib/xcodeproj/project/object.rb:296:in `each'
/Users/mohitkadwe/Developer/work/client/VJoin-React-Native/vendor/bundle/ruby/3.1.0/gems/xcodeproj-1.22.0/lib/xcodeproj/project/object.rb:296:in `configure_with_plist'
/Users/mohitkadwe/Developer/work/client/VJoin-React-Native/vendor/bundle/ruby/3.1.0/gems/xcodeproj-1.22.0/lib/xcodeproj/project.rb:272:in `new_from_plist'
/Users/mohitkadwe/Developer/work/client/VJoin-React-Native/vendor/bundle/ruby/3.1.0/gems/xcodeproj-1.22.0/lib/xcodeproj/project/object.rb:350:in `object_with_uuid'
/Users/mohitkadwe/Developer/work/client/VJoin-React-Native/vendor/bundle/ruby/3.1.0/gems/xcodeproj-1.22.0/lib/xcodeproj/project/object.rb:290:in `block in configure_with_plist'
/Users/mohitkadwe/Developer/work/client/VJoin-React-Native/vendor/bundle/ruby/3.1.0/gems/xcodeproj-1.22.0/lib/xcodeproj/project/object.rb:287:in `each'
/Users/mohitkadwe/Developer/work/client/VJoin-React-Native/vendor/bundle/ruby/3.1.0/gems/xcodeproj-1.22.0/lib/xcodeproj/project/object.rb:287:in `configure_with_plist'
/Users/mohitkadwe/Developer/work/client/VJoin-React-Native/vendor/bundle/ruby/3.1.0/gems/xcodeproj-1.22.0/lib/xcodeproj/project.rb:272:in `new_from_plist'
/Users/mohitkadwe/Developer/work/client/VJoin-React-Native/vendor/bundle/ruby/3.1.0/gems/xcodeproj-1.22.0/lib/xcodeproj/project.rb:213:in `initialize_from_file'
/Users/mohitkadwe/Developer/work/client/VJoin-React-Native/vendor/bundle/ruby/3.1.0/gems/xcodeproj-1.22.0/lib/xcodeproj/project.rb:113:in `open'
/Users/mohitkadwe/Developer/work/client/VJoin-React-Native/vendor/bundle/ruby/3.1.0/gems/cocoapods-1.12.1/lib/cocoapods/installer/analyzer.rb:1194:in `block (2 levels) in inspect_targets_to_integrate'
/Users/mohitkadwe/Developer/work/client/VJoin-React-Native/vendor/bundle/ruby/3.1.0/gems/cocoapods-1.12.1/lib/cocoapods/installer/analyzer.rb:1193:in `each'
/Users/mohitkadwe/Developer/work/client/VJoin-React-Native/vendor/bundle/ruby/3.1.0/gems/cocoapods-1.12.1/lib/cocoapods/installer/analyzer.rb:1193:in `block in inspect_targets_to_integrate'
/Users/mohitkadwe/Developer/work/client/VJoin-React-Native/vendor/bundle/ruby/3.1.0/gems/cocoapods-1.12.1/lib/cocoapods/user_interface.rb:64:in `section'
/Users/mohitkadwe/Developer/work/client/VJoin-React-Native/vendor/bundle/ruby/3.1.0/gems/cocoapods-1.12.1/lib/cocoapods/installer/analyzer.rb:1188:in `inspect_targets_to_integrate'
/Users/mohitkadwe/Developer/work/client/VJoin-React-Native/vendor/bundle/ruby/3.1.0/gems/cocoapods-1.12.1/lib/cocoapods/installer/analyzer.rb:107:in `analyze'
/Users/mohitkadwe/Developer/work/client/VJoin-React-Native/vendor/bundle/ruby/3.1.0/gems/cocoapods-1.12.1/lib/cocoapods/installer.rb:422:in `analyze'
/Users/mohitkadwe/Developer/work/client/VJoin-React-Native/vendor/bundle/ruby/3.1.0/gems/cocoapods-1.12.1/lib/cocoapods/installer.rb:244:in `block in resolve_dependencies'
/Users/mohitkadwe/Developer/work/client/VJoin-React-Native/vendor/bundle/ruby/3.1.0/gems/cocoapods-1.12.1/lib/cocoapods/user_interface.rb:64:in `section'
/Users/mohitkadwe/Developer/work/client/VJoin-React-Native/vendor/bundle/ruby/3.1.0/gems/cocoapods-1.12.1/lib/cocoapods/installer.rb:243:in `resolve_dependencies'
/Users/mohitkadwe/Developer/work/client/VJoin-React-Native/vendor/bundle/ruby/3.1.0/gems/cocoapods-1.12.1/lib/cocoapods/installer.rb:162:in `install!'
/Users/mohitkadwe/Developer/work/client/VJoin-React-Native/vendor/bundle/ruby/3.1.0/gems/cocoapods-1.12.1/lib/cocoapods/command/install.rb:52:in `run'
/Users/mohitkadwe/Developer/work/client/VJoin-React-Native/vendor/bundle/ruby/3.1.0/gems/claide-1.1.0/lib/claide/command.rb:334:in `run'
/Users/mohitkadwe/Developer/work/client/VJoin-React-Native/vendor/bundle/ruby/3.1.0/gems/cocoapods-1.12.1/lib/cocoapods/command.rb:52:in `run'
/Users/mohitkadwe/Developer/work/client/VJoin-React-Native/vendor/bundle/ruby/3.1.0/gems/cocoapods-1.12.1/bin/pod:55:in `'
/Users/mohitkadwe/.rvm/gems/ruby-3.1.2/bin/pod:25:in `load'
/Users/mohitkadwe/.rvm/gems/ruby-3.1.2/bin/pod:25:in `'
/Users/mohitkadwe/.rvm/gems/ruby-3.1.2/bin/ruby_executable_hooks:22:in `eval'
/Users/mohitkadwe/.rvm/gems/ruby-3.1.2/bin/ruby_executable_hooks:22:in `'
```
――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
[!] Oh no, an error occurred.
Search for existing GitHub issues similar to yours:
https://github.com/CocoaPods/CocoaPods/search?q=%60PBXGroup%60+attempted+to+initialize+an+object+with+unknown+ISA+%60PBXFileSystemSynchronizedRootGroup%60+from+attributes%3A+%60%7B%22isa%22%3D%3E%22PBXFileSystemSynchronizedRootGroup%22%2C+%22exceptions%22%3D%3E%5B%227EB0A76D2CFA47AA00F67DB4%22%5D%2C+%22explicitFileTypes%22%3D%3E%7B%7D%2C+%22explicitFolders%22%3D%3E%5B%5D%2C+%22path%22%3D%3E%22OneSignalNotificationServiceExtension%22%2C+%22sourceTree%22%3D%3E%22%3Cgroup%3E%22%7D%60%0AIf+this+ISA+was+generated+by+Xcode+please+file+an+issue%3A+https%3A%2F%2Fgithub.com%2FCocoaPods%2FXcodeproj%2Fissues%2Fnew&type=Issues
If none exists, create a ticket, with the template displayed above, on:
https://github.com/CocoaPods/CocoaPods/issues/new
Be sure to first read the contributing guide for details on how to properly submit a ticket:
https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md
Don't forget to anonymize any private data!
Looking for related issues on cocoapods/cocoapods...
Searching for inspections failed: undefined method `map' for nil:NilClass
report.issues = results['items'].map { |item| Issue.new(item) }
^^^^
[!] Do not use "pod install" from inside Rosetta2 (x86_64 emulation on arm64).
[!] - Emulated x86_64 is slower than native arm64
[!] - May result in mixed architectures in rubygems (eg: ffi_c.bundle files may be x86_64 with an arm64 interpreter)
[!] Run "env /usr/bin/arch -arm64 /bin/bash --login" then try again.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the reported `pod install --verbose` failure and the xcodeproj `lib/xcodeproj/project/object.rb` stack frame. Reproduce it with the shown CocoaPods, Ruby, macOS, and Xcode versions, then inspect handling of `PBXFileSystemSynchronizedRootGroup` for `OneSignalNotificationServiceExtension`. Done means the project can be parsed and `pod install` completes, with regression coverage if the repository has matching tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, react-native, ruby
- Domain
- build-system, mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100