BlueRiverInteractive / robovm-ios-bindings

[Deprecated] New bindings: https://github.com/robovm/robovm-robopods. A collection of third party bindings for RoboVM iOS
Apache License 2.0
162 stars 101 forks source link

Issue with Admob bindings #125

Closed barodapride closed 9 years ago

barodapride commented 9 years ago

Hello,

I was trying to implement Admob bindings by following the sample but I was having an issue that was causing my screen not to respond to any touch inputs. I narrowed down the issue to this line:

window.makeKeyAndVisible();

I was able to work around this issue by calling this method in my interstitial's didReceiveAd delegate method and then calling window.setHidden(true); in my interstitial's didDismissScreen method.

I looked at the issues listed here and did not see anything like it. Am I doing something wrong? I did a little research about these methods in the iOS world but I don't understand enough about what is happening to figure it out. Should the Admob sample be changed or did I do something wrong on my end?

neopraveen commented 9 years ago

framework not found Metal for architecture armv7 error: linker command failed with exit code 1 (use -v to see invocation) [ERROR] Build failed.

i am using your updated binding but still getting the Metal framework not find issue. Is anything I am doing wrong. Please help me. I am stucked on this admob thing :(

Here is the full stack trace : 12/12/14 9:25:11 PM: [DEBUG] Building executable /Users/NeoPraveeb/Documents/android/workspace/test/.metadata/.plugins/org.robovm.eclipse.ui/build/KidsCarRacing-ios/KidsCarApple/ios/thumbv7/IOSLauncher 12/12/14 9:25:11 PM: [DEBUG] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -o /Users/NeoPraveeb/Documents/android/workspace/test/.metadata/.plugins/org.robovm.eclipse.ui/build/KidsCarRacing-ios/KidsCarApple/ios/thumbv7/IOSLauncher -g -arch armv7 -Wl,-filelist,/Users/NeoPraveeb/Documents/android/workspace/test/.metadata/.plugins/org.robovm.eclipse.ui/build/KidsCarRacing-ios/KidsCarApple/ios/thumbv7/objects -L /Users/NeoPraveeb/Documents/android/workspace/test/.metadata/.plugins/org.robovm.eclipse.ui/robovm-0.0.14/lib/vm/ios/thumbv7 -ObjC -exported_symbols_list /Users/NeoPraveeb/Documents/android/workspace/test/.metadata/.plugins/org.robovm.eclipse.ui/build/KidsCarRacing-ios/KidsCarApple/ios/thumbv7/exported_symbols -Wl,-no_implicit_dylibs -Wl,-dead_strip -F/Users/NeoPraveeb/Documents/android/libgdx/KidsCarRacing/ios/build/libs -miphoneos-version-min=5.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk -lrobovm-bc -force_load /Users/NeoPraveeb/Documents/android/workspace/test/.metadata/.plugins/org.robovm.eclipse.ui/robovm-0.0.14/lib/vm/ios/thumbv7/librobovm-rt.a -lrobovm-debug -lrobovm-core -lgc -lpthread -ldl -lm -liconv -lsqlite3 -framework Foundation -framework UIKit -framework OpenGLES -framework QuartzCore -framework OpenAL -framework AudioToolbox -framework AVFoundation -framework Chartboost -framework CoreMedia -framework SystemConfiguration -framework CoreGraphics -framework Security -framework MediaPlayer -framework CoreTelephony -framework MessageUI -framework CoreData -weak_framework AdSupport -weak_framework StoreKit -force_load /Users/NeoPraveeb/Documents/android/libgdx/KidsCarRacing/ios/build/libs/ios/libadmob.a -force_load /Users/NeoPraveeb/Documents/android/libgdx/KidsCarRacing/ios/build/libs/ios/libgdx-box2d.a -force_load /Users/NeoPraveeb/Documents/android/libgdx/KidsCarRacing/ios/build/libs/ios/libgdx-freetype.a -force_load /Users/NeoPraveeb/Documents/android/libgdx/KidsCarRacing/ios/build/libs/ios/libgdx.a -force_load 12/12/14 9:25:11 PM: [DEBUG] /Users/NeoPraveeb/Documents/android/libgdx/KidsCarRacing/ios/build/libs/ios/libObjectAL.a 12/12/14 9:25:37 PM: [ERROR] ld: framework not found Metal for architecture armv7 12/12/14 9:25:57 PM: [ERROR] clang: error: linker command failed with exit code 1 (use -v to see invocation) 12/12/14 9:25:57 PM: [ERROR] Build failed

BlueRiverInteractive commented 9 years ago

Do you have the Metal framework added to your robovm.xml?

neopraveen commented 9 years ago

The build is running without any problem on ios simulator, but the error comes if I launch it on IPhone device. If I add Metal in framework, then the error is Metal not found.

neopraveen commented 9 years ago

Fixed automatically after updating my mac OS and xcode :+1:

Thanks

BlueRiverInteractive commented 9 years ago

AdMob is now officially supported as a RoboPod: https://github.com/robovm/robovm-robopods

Just add the following to your Gradle:

dependencies {
   ... other dependencies ...
   compile "org.robovm:robopods-google-mobile-ads-ios:1.5.0"
}

or maven files:

<dependency>
   <groupId>org.robovm</groupId>
   <artifactId>robopods-google-mobile-ads-ios</artifactId>
   <version>1.5.0</version>
</dependency>

Please use the RoboPod from now and post any issues you encounter on their issues list. Thanks!