ark-brighthustle / flutter_zoom_sdk

Zoom SDK from ZOOM ported to flutter as plugin with all necessary features and with Null Safety which is implementation by CodeSyncr
BSD 3-Clause "New" or "Revised" License
41 stars 85 forks source link

Exception: Error running pod install (got this error after adding zoom sdk into my flutter app) #71

Closed waqas-alii closed 2 years ago

waqas-alii commented 2 years ago

Automatically signing iOS for device deployment using specified development team in Xcode project: 2Y786A3VMF Running pod install... 2,276ms CocoaPods' output: ↳ Preparing

Analyzing dependencies

Inspecting targets to integrate
  Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``)

Finding Podfile changes
  A flutter_zoom_sdk
  R flutter_downloader
  - Flutter

Fetching external sources
-> Fetching podspec for `Flutter` from `Flutter`
-> Fetching podspec for `flutter_zoom_sdk` from `.symlinks/plugins/flutter_zoom_sdk/ios`

Resolving dependencies of `Podfile`
  CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local because checking is only performed in repo update

Comparing resolved specification to the sandbox manifest
  A Flutter
  A flutter_zoom_sdk

Downloading dependencies

-> Installing Flutter (1.0.0)

-> Installing flutter_zoom_sdk (0.0.1)
  - Running pre install hooks
  - Running pre integrate hooks

Generating Pods project
  - Creating Pods project
  - Installing files into Pods project
    - Adding source files
    - Adding frameworks
    - Adding libraries
    - Adding resources
    - Adding development pod helper files
    - Linking headers
  - Installing Pod Targets
    - Installing target `Flutter` iOS 9.0
    - Installing target `flutter_zoom_sdk` iOS 9.0
  CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local because checking is only performed in repo update

――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

### Command

```
/usr/local/bin/pod install --verbose
```

### Report

* What did you do?

* What did you expect to happen?

* What happened instead?

### Stack

```
   CocoaPods : 1.11.3
        Ruby : ruby 2.6.8p205 (2021-07-07 revision 67951) [universal.x86_64-darwin21]
    RubyGems : 3.2.30
        Host : macOS 12.3 (21E230)
       Xcode : 13.3 (13E113)
         Git : git version 2.32.0 (Apple Git-132)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib
Repositories : trunk - CDN - https://cdn.cocoapods.org/
```

### 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
# Uncomment this line to define a global platform for your project
# platform :ios, '9.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__))
end

post_install do |installer|
  installer.pods_project.targets.each do |target|
    flutter_additional_ios_build_settings(target)
    target.build_configurations.each do |config|
      config.build_settings['ENABLE_BITCODE'] = 'NO'
    end
  end
end
```

### Error

```
NoMethodError - undefined method `size' for nil:NilClass
/Library/Ruby/Gems/2.6.0/gems/ruby-macho-2.5.1/lib/macho/macho_file.rb:459:in `populate_mach_header'
/Library/Ruby/Gems/2.6.0/gems/ruby-macho-2.5.1/lib/macho/macho_file.rb:240:in `populate_fields'
/Library/Ruby/Gems/2.6.0/gems/ruby-macho-2.5.1/lib/macho/macho_file.rb:66:in `initialize_from_bin'
/Library/Ruby/Gems/2.6.0/gems/ruby-macho-2.5.1/lib/macho/macho_file.rb:40:in `new_from_bin'
/Library/Ruby/Gems/2.6.0/gems/ruby-macho-2.5.1/lib/macho/fat_file.rb:371:in `block in populate_machos'
/Library/Ruby/Gems/2.6.0/gems/ruby-macho-2.5.1/lib/macho/fat_file.rb:370:in `each'
/Library/Ruby/Gems/2.6.0/gems/ruby-macho-2.5.1/lib/macho/fat_file.rb:370:in `populate_machos'
/Library/Ruby/Gems/2.6.0/gems/ruby-macho-2.5.1/lib/macho/fat_file.rb:162:in `populate_fields'
/Library/Ruby/Gems/2.6.0/gems/ruby-macho-2.5.1/lib/macho/fat_file.rb:100:in `initialize'
/Library/Ruby/Gems/2.6.0/gems/ruby-macho-2.5.1/lib/macho.rb:35:in `new'
/Library/Ruby/Gems/2.6.0/gems/ruby-macho-2.5.1/lib/macho.rb:35:in `open'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/xcode/linkage_analyzer.rb:16:in `dynamic_binary?'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/xcode/xcframework/xcframework_slice.rb:107:in `build_type'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/xcode/xcframework/xcframework_slice.rb:100:in `dynamic?'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/pods_project_generator/pod_target_installer.rb:1180:in `each'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/pods_project_generator/pod_target_installer.rb:1180:in `partition'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/pods_project_generator/pod_target_installer.rb:1180:in `block (2 levels) in
validate_xcframeworks'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/pods_project_generator/pod_target_installer.rb:1161:in `each'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/pods_project_generator/pod_target_installer.rb:1161:in `block in validate_xcframeworks'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/pods_project_generator/pod_target_installer.rb:1160:in `each_value'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/pods_project_generator/pod_target_installer.rb:1160:in `validate_xcframeworks'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/pods_project_generator/pod_target_installer.rb:67:in `block in install!'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/user_interface.rb:149:in `message'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/pods_project_generator/pod_target_installer.rb:40:in `install!'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/pods_project_generator.rb:115:in `block in install_pod_targets'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/pods_project_generator.rb:112:in `map'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/pods_project_generator.rb:112:in `install_pod_targets'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/single_pods_project_generator.rb:32:in `block in install_all_pod_targets'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/user_interface.rb:149:in `message'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/single_pods_project_generator.rb:31:in `install_all_pod_targets'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/single_pods_project_generator.rb:19:in `generate!'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:314:in `block in create_and_save_projects'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/user_interface.rb:64:in `section'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:309:in `create_and_save_projects'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:301:in `generate_pods_project'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:180:in `integrate'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:167:in `install!'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/command/install.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:25:in `load'
/usr/local/bin/pod:25:in `<main>'
```

――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

[!] Oh no, an error occurred.

Search for existing GitHub issues similar to yours:
https://github.com/CocoaPods/CocoaPods/search?q=undefined+method+%60size%27+for+nil%3ANilClass&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...
 - NoMethodError - undefined method `size' for nil:NilClass
   https://github.com/CocoaPods/CocoaPods/issues/8377 [closed] [28 comments]
   3 weeks ago

 - NoMethodError - undefined method `each' for nil:NilClass
   https://github.com/CocoaPods/CocoaPods/issues/9239 [closed] [11 comments]
   11 Dec 2021

 - NoMethodError - undefined method `size' for nil:NilClass
   https://github.com/CocoaPods/CocoaPods/issues/10956 [closed] [1 comment]
   05 Oct 2021

and 10 more at:
https://github.com/cocoapods/cocoapods/search?q=undefined%20method%20%60size%27%20for%20nil&type=Issues&utf8=✓

Error output from CocoaPods: ↳

[!] Automatically assigning platform `iOS` with version `9.0` on target `Runner` because no platform was specified. Please specify a platform for this target in your
Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.

Exception: Error running pod install

waqas-alii commented 2 years ago

To double check that zoom sdk is not conflicting with any other dependency i created a new testing project and added zoom sdk in it after that i run the application it gives me the pods issue detailed above.

Is there a way to solve this ?

ark-brighthustle commented 2 years ago

NoMethodError - undefined method `size' for nil:NilClass

looking to reeproduce the issue

waqas-alii commented 2 years ago

1.Create a new flutter project 2.Add flutter_zoom_sdk with all configuration

And run the project on ios either on physical device or simulator you will. Get this error

On Sat, 26 Mar 2022, 11:58 am EvilRATT., @.***> wrote:

NoMethodError - undefined method `size' for nil:NilClass

looking to reeproduce the issue

— Reply to this email directly, view it on GitHub https://github.com/evilrat/flutter_zoom_sdk/issues/71#issuecomment-1079624810, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANNSYQE6DOOFYQZ3CDHSJQLVB2YPRANCNFSM5RUTS72A . You are receiving this because you authored the thread.Message ID: @.***>

waqas-alii commented 2 years ago

Any update on this?

On Sat, Mar 26, 2022 at 6:47 PM Waqas Ali @.***> wrote:

1.Create a new flutter project 2.Add flutter_zoom_sdk with all configuration

And run the project on ios either on physical device or simulator you will. Get this error

On Sat, 26 Mar 2022, 11:58 am EvilRATT., @.***> wrote:

NoMethodError - undefined method `size' for nil:NilClass

looking to reeproduce the issue

— Reply to this email directly, view it on GitHub https://github.com/evilrat/flutter_zoom_sdk/issues/71#issuecomment-1079624810, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANNSYQE6DOOFYQZ3CDHSJQLVB2YPRANCNFSM5RUTS72A . You are receiving this because you authored the thread.Message ID: @.***>

ark-brighthustle commented 2 years ago

Any update on this? On Sat, Mar 26, 2022 at 6:47 PM Waqas Ali @.> wrote: 1.Create a new flutter project 2.Add flutter_zoom_sdk with all configuration And run the project on ios either on physical device or simulator you will. Get this error On Sat, 26 Mar 2022, 11:58 am EvilRATT., @.> wrote: > NoMethodError - undefined method `size' for nil:NilClass > > looking to reeproduce the issue > > — > Reply to this email directly, view it on GitHub > <#71 (comment)>, > or unsubscribe > https://github.com/notifications/unsubscribe-auth/ANNSYQE6DOOFYQZ3CDHSJQLVB2YPRANCNFSM5RUTS72A > . > You are receiving this because you authored the thread.Message ID: > @.***> >

i am unable to reproduce the issue....it is working fine on my real device ---- iphone 13 pro, iphone 12 pro ans iphone 6s and i am unable to run it on emulator as i have mac m1 chip wich is not supported by zoom sdk itself as of now

waqas-alii commented 2 years ago

@evilrat its not working for me once i remove the zoom sdk dependency app start working normally and if i add flutter_zoom_sdk dependency and then runs on ios its giving me the same error above

(Note i tried in my current project and also by creating a new sample project)

waqas-alii commented 2 years ago

@evilrat flutter_zoom_sdk: ^1.1.0+4 this latest version solve the issue, Thanks

ark-brighthustle commented 2 years ago

@evilrat flutter_zoom_sdk: ^1.1.0+4 this latest version solve the issue, Thanks

you can reopen the issue any time you face any innsue