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

some issues in admob #124

Open
stefchang opened this issue Jul 20, 2016 · 7 comments
Open

some issues in admob #124

stefchang opened this issue Jul 20, 2016 · 7 comments

Comments

@stefchang
Copy link

[ERROR] Undefined symbols for architecture x86_64:
[ERROR] "OBJC_CLASS$_SFSafariViewController", referenced from:
[ERROR] objc-class-ref in GoogleMobileAds(flat-x86_64)
[ERROR] "OBJC_CLASS$_CBUUID", referenced from:
[ERROR] objc-class-ref in GoogleMobileAds(flat-x86_64)
[ERROR] "OBJC_CLASS$_CBCentralManager", referenced from:
[ERROR] objc-class-ref in GoogleMobileAds(flat-x86_64)
[ERROR] "_CBCentralManagerOptionShowPowerAlertKey", referenced from:
[ERROR] l876 in GoogleMobileAds(flat-x86_64)
[ERROR] ld: symbol(s) not found for architecture x86_64
[ERROR] clang: error: linker command failed with exit code 1 (use -v to see invocation)
[ERROR] Couldn't compile app

compile "org.robovm:robopods-google-mobile-ads-ios:1.14.0"

when i compile Libgdx ios project, it has some error.

who can fix it? THX

@hateftad
Copy link

Add the framework safaricontroller in your robovm.xml

@hateftad
Copy link

Add these
AdSupport
AudioToolbox
AVFoundation
CoreGraphics
CoreMedia
CoreTelephony
EventKit
EventKitUI
MediaPlayer
MessageUI
QuartzCore
StoreKit
SystemConfiguration

@stefchang
Copy link
Author

My robovm.xml

<libs>
      <lib>z</lib>   
  </libs>
  <frameworkPaths>
    <path>libs</path>
  </frameworkPaths>
  <frameworks>
    <framework>AdSupport</framework>
    <framework>AudioToolbox</framework>
    <framework>AVFoundation</framework>
    <framework>CoreGraphics</framework>
    <framework>CoreMedia</framework>
    <framework>CoreTelephony</framework>
    <framework>EventKit</framework>
    <framework>EventKitUI</framework>
    <framework>MediaPlayer</framework>
    <framework>MessageUI</framework>
    <framework>QuartzCore</framework>
    <framework>StoreKit</framework>
    <framework>SystemConfiguration</framework>
    <framework>GoogleMobileAds</framework>
  </frameworks>

@stefchang
Copy link
Author

can i must add "GoogleMobileAds" in robovm.xml?

because i follow the README https://github.com/robovm/robovm-robopods/blob/master/google-mobile-ads/ios/README.md

<config>
    ...
    <frameworkPaths>
        <path>libs</path>
    </frameworkPaths>
    <frameworks>
        <framework>GoogleMobileAds</framework>
    </frameworks>
</config>

@hateftad
Copy link

You have to add that inclusive with all the others

@stefchang
Copy link
Author

9501b3b0-9c24-4a49-83d8-6fb7f2a6a860
f0d6fde2-1189-4fc1-8401-c3fee5149b60

this is my setting,but it can't be compiled......

@thanh-nguyen-kim
Copy link

UIKit
GLKit
CoreVideo
OpenGLES
QuartzCore
CoreGraphics
CoreMotion
OpenAL
AudioToolbox
AVFoundation
GoogleMobileAds
EventKit
EventKitUI
MessageUI
AdSupport
CoreTelephony
StoreKit
SafariServices
CoreBluetooth
CoreMedia
CoreTelephony
MediaPlayer
QuartzCore
StoreKit
SystemConfiguration

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