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

Google-Mobile-Ads-SDK 7.68.0 and xcframework don't display Class name in storyboard #10484

Closed
1 task done
SmartHbdev opened this issue Mar 3, 2021 · 9 comments
Closed
1 task done

Comments

@SmartHbdev
Copy link

SmartHbdev commented Mar 3, 2021

Report

What did you do?

pod install

What did you expect to happen?

Use Custom class from Google-Mobile-Ads-SDK in the storyboard

What happened instead?

Google-Mobile-Ads-SDK class don't appear in the drop down menu to select the class name.
Adding the Class name manually don't load it as expexted.
For example GADUnifiedNativeAdView don't load the outlets and we can't connect them to the views.

Google-Mobile-Ads-SDK 7.68.0 use xcframework, that's probably the issue

CocoaPods Environment

Stack

   CocoaPods : 1.10.1
        Ruby : ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin20]
    RubyGems : 3.0.3
        Host : macOS 11.2.1 (20D74)
       Xcode : 12.4 (12D4e)
         Git : git version 2.24.3 (Apple Git-128)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib
Repositories : cocoapods - git - https://github.com/CocoaPods/Specs.git @ e47b0bc35104563d4cc9255d44fd347eefe96093
               trunk - CDN - https://cdn.cocoapods.org/

Installation Source

Executable Path: /usr/local/bin/pod

Plugins

cocoapods-deintegrate : 1.0.4
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.0
cocoapods-stats       : 1.1.0
cocoapods-trunk       : 1.4.1
cocoapods-try         : 1.1.0

Podfile

# Uncomment this line to define a global platform for your project
platform :ios, '9.0'
# Uncomment this line if you're using Swift
# use_frameworks!

# ignore all warnings from all pods
inhibit_all_warnings!

use_frameworks!

#source 'https://github.com/CocoaPods/Specs.git'

target 'Explote' do
  
  post_install do |installer|
    installer.pods_project.targets.each do |target|
      target.build_configurations.each do |config|
        if config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'].to_f < 9.0
          config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
        end
      end
    end
  end
  
  pod 'Firebase/Analytics'
  pod 'Firebase/Performance'
  
  pod 'MWFeedParser'
  pod 'CocoaLumberjack'
  pod 'Fabric'
  pod 'Crashlytics'
  pod 'Google-Mobile-Ads-SDK', '7.68.0'

  pod 'CocoaAsyncSocket'
  pod 'HHServices'
  
  pod 'Toast'
  
  target 'ExploteTests' do
    inherit! :search_paths
  end
  
  target 'ExploteUITests' do
    inherit! :search_paths
  end
  
  
  
end

Project that demonstrates the issue

Any project with Google-Mobile-Ads-SDK 7.68.0 show this issue

@dnkoutso
Copy link
Contributor

dnkoutso commented Mar 3, 2021

Please file an issue at the corresponding google repository. If its determined to be a cocoapods issue we can re-open this one and figure out what the problem is.

@dnkoutso dnkoutso closed this as completed Mar 3, 2021
@SmartHbdev
Copy link
Author

I don't think they have a public repo. About xcframework i have see many issue here so maybe you can check if it's a Cococpod issue or SDK issue ?

I think the xcframework is not linked correctly somewhere, that's why the class name don't appear in the storyboard.
But if i don't need this part and stay with code only, the project works fine.

Maybe a path issue or something like this with pod.
There is a open issue on pod (i have lost the issue number) who say something similar about xcframework and something missing with pod compared to integration without pod.

I have spend hours of searching today, please take a quick look.

@SmartHbdev
Copy link
Author

Just add pod 'Google-Mobile-Ads-SDK', '7.68.0' in any project and see that no class that start with GAD is listed.
I can see them in the xcframework file but the storyboard don't see them.

@dnkoutso dnkoutso reopened this Mar 3, 2021
@dnkoutso
Copy link
Contributor

dnkoutso commented Mar 3, 2021

Going to keep open but I personally have little time to investigate this.

@paulb777
Copy link
Member

paulb777 commented Mar 3, 2021

Maybe related to #10459 and might need a similar -ObjC workaround.

@SmartHbdev
Copy link
Author

Maybe related to #10459 and might need a similar -ObjC workaround.

I can see -ObjC is already in other linker flag, don't know why or why not.
It's probably not the same problem.

@dnkoutso
Copy link
Contributor

dnkoutso commented Aug 5, 2021

@paulb777 I know this is old, any ideas? Maybe 1.11.0 master has fixed issues?

@paulb777
Copy link
Member

paulb777 commented Aug 5, 2021

Yes, it might even be fixed in 1.10.2 via #10460

@dnkoutso dnkoutso closed this as completed Aug 5, 2021
@dnkoutso
Copy link
Contributor

dnkoutso commented Aug 5, 2021

We can reopen if more reports come in

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

3 participants