googleads / googleads-mobile-unity

Official Unity Plugin for the Google Mobile Ads SDK
https://developers.google.com/admob/unity
Apache License 2.0
1.37k stars 1.08k forks source link

Error: use of undeclared identifier ID GAD SIMULATOR #78

Closed KyDenZ closed 9 years ago

KyDenZ commented 9 years ago

Hello,

I think you have a problem with the emulation ID. I want to know how to pouur settle this problem, and if once this problem is resolved, the advertising will be functional on all iphones sans titre-1 sans titre-2

thank you

RedBrogdon commented 9 years ago

The GAD_SIMULATOR_ID constant has been removed from the latest version of the iOS SDK (7.0) because it is no longer needed. We have changed the SDK to always serve test ads to apps running on a simulator. You still need to call addTestDevices when running on a hardware device, but there is no longer any need to do this to force test ads on the simulator.

Basically, you can comment out the line that's giving you the error, and your app will compile and still receive test ads on the simulator.

KyDenZ commented 9 years ago

Okay, thank you The simulator starts, but I do not have a pub when I click on Show and in Xcode I have a line with the comment: thread 1 exc_bad_access (code=2 address=0x0)

sans titre-2

But once the application has sent Apple, appear coming adverts?

rampara commented 9 years ago

Can you list the issues you see in the issue navigator?

KyDenZ commented 9 years ago

I do not cromprends what you want.

I'm sorry, I discovered Xcode for porting my game on IOS

Or I have to go to find the information?

rampara commented 9 years ago

screen shot 2015-03-03 at 2 55 15 pm

This view of the log navigator shows all errors and issues.

KyDenZ commented 9 years ago

Thank you for the information, so here the record clone of os x mavericks-2015-03-04-00-03-38 clone of os x mavericks-2015-03-04-00-04-03

KyDenZ commented 9 years ago

clone of os x mavericks-2015-03-04-00-15-30

rampara commented 9 years ago

There does not seem to be any errors. You should be able to run the application. Keep in mind Unity applications don't work well on the simulator and should be run on actual iOS hardware.

KyDenZ commented 9 years ago

Okay, I'll try with an iphone. And if it works on the iphone, it will work on all iPhones that will download the application on the store?

rampara commented 9 years ago

There are can always be issues that arise from differences in hardware or iOS releases but testing on actual devices will be a better bet than using simulators for Unity projects.

http://docs.unity3d.com/Manual/iphone-basic.html

KyDenZ commented 9 years ago

I downloaded Unity 5, I got an error (ARC), looking on google, I found a solution: add -fno-objc bow to the "compile flags"

Now the application launches, but remains on a black background Do you have the same problem?

rampara commented 9 years ago

v.2.2.1 of the Unity plugin supports Unity 5.0 and ARC for iOS.

KyDenZ commented 9 years ago

Thank you