Open gauravRNDev opened 4 weeks ago
if anyone comes across this issue then please downgrade your Xcode version to 15 in my case I downgrade to 15.3 and still, there will be one more error for which you should refer to this thread and all your builds and testing will work as expected. https://github.com/OneSignal/OneSignal-Flutter-SDK/issues/857#issuecomment-2106324671
if anyone comes across this issue then please downgrade your Xcode version to 15 in my case I downgrade to 15.3 and still, there will be one more error for which you should refer to this thread and all your builds and testing will work as expected. #857 (comment)
not worked
if anyone comes across this issue then please downgrade your Xcode version to 15 in my case I downgrade to 15.3 and still, there will be one more error for which you should refer to this thread and all your builds and testing will work as expected. #857 (comment)
not worked
update your pods according to your new xcode version if you downgrade your xcode
I am able to resolve this issue as the error I am facing is almost similar to yours (LoadError—can not load such file -- ffi_c). It generally occurs because the ffi (Foreign Function Interface) gem, which CocoaPods requires, is either missing or incompatible with your current Ruby and macOS versions.
I run these commands respectively
sudo gem uninstall ffi sudo gem install ffi brew install rbenv pod update pod install
NOTE: remember to delete podfile.lock pod update before
Hi here, the best solution is to upgrade xcodeproj to latest and cocoapods to latest. You'll be able to solve this issue with https://github.com/flutter/flutter/issues/157761#issuecomment-2443646840
What happened?
when i try to install latest version of oneSIgnal SDK the pod install is not working on ios the
Steps to reproduce?
What did you expect to happen?
I expected it to install easily as I used one signal for many items in react native and this is my first time using one signal with Flutter
OneSignal Flutter SDK version
Release 5.2.6
Which platform(s) are affected?
Relevant log output
Report
What did you do?
What did you expect to happen?
What happened instead?
Stack
Plugins
Podfile
Uncomment this line to define a global platform for your project
platform :ios, '13.0'
CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
project 'Runner', { 'Debug' => :debug, 'Profile' => :release, 'Release' => :release, }
def flutter_root generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), FILE) unless File.exist?(generated_xcode_build_settings_path) raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" end
File.foreach(generated_xcode_build_settings_path) do |line| matches = line.match(/FLUTTER_ROOT\=(.*)/) return matches[1].strip if matches end raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" end
require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
flutter_ios_podfile_setup
target 'Runner' do use_frameworks! use_modular_headers!
flutter_install_all_ios_pods File.dirname(File.realpath(FILE)) target 'RunnerTests' do inherit! :search_paths end end
post_install do |installer| installer.pods_project.targets.each do |target| flutter_additional_ios_build_settings(target) end end
target 'OneSignalNotificationServiceExtension' do use_frameworks! pod 'OneSignalXCFramework', '>= 5.0.0', '< 6.0' end
RuntimeError -'
/Users/apple/.rvm/gems/ruby-2.7.6/bin/ruby_executable_hooks:22:in '
PBXGroup
attempted to initialize an object with unknown ISAPBXFileSystemSynchronizedRootGroup
from attributes:{"isa"=>"PBXFileSystemSynchronizedRootGroup", "exceptions"=>["18DD18082CCA1C6900C04461"], "explicitFileTypes"=>{}, "explicitFolders"=>[], "path"=>"OneSignalNotificationServiceExtension", "sourceTree"=>"<group>"}
If this ISA was generated by Xcode please file an issue: https://github.com/CocoaPods/Xcodeproj/issues/new /Users/apple/.rvm/rubies/ruby-2.7.6/lib/ruby/gems/2.7.0/gems/xcodeproj-1.25.1/lib/xcodeproj/project/object.rb:359:inrescue in object_with_uuid' /Users/apple/.rvm/rubies/ruby-2.7.6/lib/ruby/gems/2.7.0/gems/xcodeproj-1.25.1/lib/xcodeproj/project/object.rb:349:in
object_with_uuid' /Users/apple/.rvm/rubies/ruby-2.7.6/lib/ruby/gems/2.7.0/gems/xcodeproj-1.25.1/lib/xcodeproj/project/object.rb:300:inblock (2 levels) in configure_with_plist' /Users/apple/.rvm/rubies/ruby-2.7.6/lib/ruby/gems/2.7.0/gems/xcodeproj-1.25.1/lib/xcodeproj/project/object.rb:299:in
each' /Users/apple/.rvm/rubies/ruby-2.7.6/lib/ruby/gems/2.7.0/gems/xcodeproj-1.25.1/lib/xcodeproj/project/object.rb:299:inblock in configure_with_plist' /Users/apple/.rvm/rubies/ruby-2.7.6/lib/ruby/gems/2.7.0/gems/xcodeproj-1.25.1/lib/xcodeproj/project/object.rb:296:in
each' /Users/apple/.rvm/rubies/ruby-2.7.6/lib/ruby/gems/2.7.0/gems/xcodeproj-1.25.1/lib/xcodeproj/project/object.rb:296:inconfigure_with_plist' /Users/apple/.rvm/rubies/ruby-2.7.6/lib/ruby/gems/2.7.0/gems/xcodeproj-1.25.1/lib/xcodeproj/project.rb:272:in
new_from_plist' /Users/apple/.rvm/rubies/ruby-2.7.6/lib/ruby/gems/2.7.0/gems/xcodeproj-1.25.1/lib/xcodeproj/project/object.rb:350:inobject_with_uuid' /Users/apple/.rvm/rubies/ruby-2.7.6/lib/ruby/gems/2.7.0/gems/xcodeproj-1.25.1/lib/xcodeproj/project/object.rb:290:in
block in configure_with_plist' /Users/apple/.rvm/rubies/ruby-2.7.6/lib/ruby/gems/2.7.0/gems/xcodeproj-1.25.1/lib/xcodeproj/project/object.rb:287:ineach' /Users/apple/.rvm/rubies/ruby-2.7.6/lib/ruby/gems/2.7.0/gems/xcodeproj-1.25.1/lib/xcodeproj/project/object.rb:287:in
configure_with_plist' /Users/apple/.rvm/rubies/ruby-2.7.6/lib/ruby/gems/2.7.0/gems/xcodeproj-1.25.1/lib/xcodeproj/project.rb:272:innew_from_plist' /Users/apple/.rvm/rubies/ruby-2.7.6/lib/ruby/gems/2.7.0/gems/xcodeproj-1.25.1/lib/xcodeproj/project.rb:213:in
initialize_from_file' /Users/apple/.rvm/rubies/ruby-2.7.6/lib/ruby/gems/2.7.0/gems/xcodeproj-1.25.1/lib/xcodeproj/project.rb:113:inopen' /Users/apple/.rvm/gems/ruby-2.7.6/gems/cocoapods-1.15.2/lib/cocoapods/installer/analyzer.rb:1194:in
block (2 levels) in inspect_targets_to_integrate' /Users/apple/.rvm/gems/ruby-2.7.6/gems/cocoapods-1.15.2/lib/cocoapods/installer/analyzer.rb:1193:ineach' /Users/apple/.rvm/gems/ruby-2.7.6/gems/cocoapods-1.15.2/lib/cocoapods/installer/analyzer.rb:1193:in
block in inspect_targets_to_integrate' /Users/apple/.rvm/gems/ruby-2.7.6/gems/cocoapods-1.15.2/lib/cocoapods/user_interface.rb:64:insection' /Users/apple/.rvm/gems/ruby-2.7.6/gems/cocoapods-1.15.2/lib/cocoapods/installer/analyzer.rb:1188:in
inspect_targets_to_integrate' /Users/apple/.rvm/gems/ruby-2.7.6/gems/cocoapods-1.15.2/lib/cocoapods/installer/analyzer.rb:107:inanalyze' /Users/apple/.rvm/gems/ruby-2.7.6/gems/cocoapods-1.15.2/lib/cocoapods/installer.rb:422:in
analyze' /Users/apple/.rvm/gems/ruby-2.7.6/gems/cocoapods-1.15.2/lib/cocoapods/installer.rb:244:inblock in resolve_dependencies' /Users/apple/.rvm/gems/ruby-2.7.6/gems/cocoapods-1.15.2/lib/cocoapods/user_interface.rb:64:in
section' /Users/apple/.rvm/gems/ruby-2.7.6/gems/cocoapods-1.15.2/lib/cocoapods/installer.rb:243:inresolve_dependencies' /Users/apple/.rvm/gems/ruby-2.7.6/gems/cocoapods-1.15.2/lib/cocoapods/installer.rb:162:in
install!' /Users/apple/.rvm/gems/ruby-2.7.6/gems/cocoapods-1.15.2/lib/cocoapods/command/install.rb:52:inrun' /Users/apple/.rvm/rubies/ruby-2.7.6/lib/ruby/gems/2.7.0/gems/claide-1.1.0/lib/claide/command.rb:334:in
run' /Users/apple/.rvm/gems/ruby-2.7.6/gems/cocoapods-1.15.2/lib/cocoapods/command.rb:52:inrun' /Users/apple/.rvm/gems/ruby-2.7.6/gems/cocoapods-1.15.2/bin/pod:55:in
<top (required)>' /Users/apple/.rvm/gems/ruby-2.7.6/bin/pod:25:inload' /Users/apple/.rvm/gems/ruby-2.7.6/bin/pod:25:in
eval' /Users/apple/.rvm/gems/ruby-2.7.6/bin/ruby_executable_hooks:22:in
Code of Conduct