robovm / robovm-robopods

64 stars 86 forks source link

some issues in admob #124

Open stefchang opened 8 years ago

stefchang commented 8 years ago

[ERROR] Undefined symbols for architecture x86_64: [ERROR] "_OBJCCLASS$_SFSafariViewController", referenced from: [ERROR] objc-class-ref in GoogleMobileAds(flat-x86_64) [ERROR] "_OBJCCLASS$_CBUUID", referenced from: [ERROR] objc-class-ref in GoogleMobileAds(flat-x86_64) [ERROR] "_OBJCCLASS$_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 commented 8 years ago

Add the framework safaricontroller in your robovm.xml

hateftad commented 8 years ago

Add these

AdSupport
    <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>
stefchang commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

You have to add that inclusive with all the others

stefchang commented 8 years ago

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

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

thanh-nguyen-kim commented 7 years ago
UIKit
    <framework>GLKit</framework>
CoreVideo
<framework>OpenGLES</framework>
<framework>QuartzCore</framework>
<framework>CoreGraphics</framework>
<framework>CoreMotion</framework>
<framework>OpenAL</framework>
<framework>AudioToolbox</framework>
<framework>AVFoundation</framework>
 <framework>GoogleMobileAds</framework>
 <framework>EventKit</framework>
 <framework>EventKitUI</framework>
 <framework>MessageUI</framework>
 <framework>AdSupport</framework>
 <framework>CoreTelephony</framework>
 <framework>StoreKit</framework>
 <framework>SafariServices</framework>
 <framework>CoreBluetooth</framework>
<framework>CoreMedia</framework>
<framework>CoreTelephony</framework>
<framework>MediaPlayer</framework>
<framework>QuartzCore</framework>
<framework>StoreKit</framework>
<framework>SystemConfiguration</framework>