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

Failed to load 'analytics_debugger' podspec - iOS #2

Open
rrifafauzikomara opened this issue Mar 2, 2023 · 3 comments
Open

Failed to load 'analytics_debugger' podspec - iOS #2

rrifafauzikomara opened this issue Mar 2, 2023 · 3 comments

Comments

@rrifafauzikomara
Copy link

rrifafauzikomara commented Mar 2, 2023

Hi @chandrabezzo , thanks for building this package.

Btw I got an issue when add this package into iOS. When I want to run the app in iOS get this error. How I can fix it?

Analyzing dependencies
[!] Failed to load 'analytics_debugger' podspec: 
[!] Invalid `analytics_debugger.podspec` file: syntax error, unexpected tSTRING_DEND, expecting end
...'[email protected]' } }
...                              ^

 #  -------------------------------------------
 #    s.license          = { :file => '../LICENSE' }
 >    s.author           = { 'Solusi Bejo (https://www.solusibejo.com)' => '[email protected]' } }
 #    s.source           = { :path => '.' }
 #  -------------------------------------------
@rrifafauzikomara
Copy link
Author

rrifafauzikomara commented Mar 3, 2023

This is the example project for above issue.

Steps to reproduce:

  • add package in pubpsec
  • copy the example code
  • run on iOS simulator
  • got the error

Repo: https://github.com/rrifafauzikomara/asdwdadw

Full errors:

Launching lib/main.dart on iPhone 13 Pro in debug mode...
Running pod install...
CocoaPods' output:

      Preparing

    Analyzing dependencies

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

    Fetching external sources
    -> Fetching podspec for `Flutter` from `Flutter`
    -> Fetching podspec for `analytics_debugger` from `.symlinks/plugins/analytics_debugger/ios`
    [!] Failed to load 'analytics_debugger' podspec: 
    [!] Invalid `analytics_debugger.podspec` file: syntax error, unexpected tSTRING_DEND, expecting end
    ...'chandrashibezzo@gmail.com' } }
    ...                              ^
    /Users/rrifafauzikomara/Downloads/asdwdadw/ios/.symlinks/plugins/analytics_debugger/ios/analytics_debugger.podspec:15: syntax error, unexpected tSTRING_DEND, expecting '}'
    ...ce           = { :path => '.' }
    ...                              ^
    /Users/rrifafauzikomara/Downloads/asdwdadw/ios/.symlinks/plugins/analytics_debugger/ios/analytics_debugger.podspec:22: syntax error, unexpected tSTRING_DEND, expecting '}'
    ...=iphonesimulator*]' => 'i386' }
    ...                              ^
    /Users/rrifafauzikomara/Downloads/asdwdadw/ios/.symlinks/plugins/analytics_debugger/ios/analytics_debugger.podspec:24: syntax error, unexpected end, expecting end-of-input.

     #  from /Users/rrifafauzikomara/Downloads/asdwdadw/ios/.symlinks/plugins/analytics_debugger/ios/analytics_debugger.podspec:14
     #  -------------------------------------------
     #    s.license          = { :file => '../LICENSE' }
     >    s.author           = { 'Solusi Bejo (https://www.solusibejo.com)' => '[email protected]' } }
     #    s.source           = { :path => '.' }
     #  -------------------------------------------

    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/external_sources/abstract_external_source.rb:175:in `rescue in store_podspec'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/external_sources/abstract_external_source.rb:161:in `store_podspec'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/external_sources/path_source.rb:17:in `block in fetch'
    /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/external_sources/path_source.rb:11:in `fetch'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/analyzer.rb:993:in `fetch_external_source'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/analyzer.rb:972:in `block (2 levels) in fetch_external_sources'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/analyzer.rb:971:in `each'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/analyzer.rb:971:in `block in fetch_external_sources'
    /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/analyzer.rb:970:in `fetch_external_sources'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/analyzer.rb:117:in `analyze'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:416:in `analyze'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:241:in `block in resolve_dependencies'
    /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:240:in `resolve_dependencies'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:161: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:23:in `load'
    /usr/local/bin/pod:23:in `<main>'

Error output from CocoaPods:


    [!] Automatically assigning platform `iOS` with version `11.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`.

Error running pod install
Error launching application on iPhone 13 Pro.

@rrifafauzikomara
Copy link
Author

I found the issue. It's because on this code you add } twice -> } }. It's should be one.

@chandrabezzo
Copy link
Owner

Hi @rrifafauzikomara thanks for raising the issue. I was fixed the issue at 1.0.1. Have you check again? Please run command flutter clean and flutter pub get before development. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants