sakebook / flutter_native_ads

Show AdMob Native Ads use PlatformView
https://pub.dev/packages/native_ads
Apache License 2.0
66 stars 32 forks source link

bad access in iphone 6 while load second native in list #5

Closed NavneetSi closed 5 years ago

NavneetSi commented 5 years ago

if I load only first native then it's working fine but once load first then reload at index 11 its say bad error from Xcode also I have tested it on android and it's working fine

sakebook commented 5 years ago

Thank you for the report!

Do you have an error log?

Is the iPhone 6 a simulator? Also, please tell me the OS version.

NavneetSi commented 5 years ago

We have tested on real iPhone6 Now I have to test on iphone5 and set modulo 25 and it's working fine but if I set modulo 10 then its cause below error

Now if I set it to modulo 25 for any device and closed mobile data then it's working fine So it looks like index issue only

Screenshot 2019-09-03 at 5 50 53 PM

2019-09-03 17:49:19.613417+0530 Runner[1013:306785] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles 2019-09-03 17:49:19.618349+0530 Runner[1013:306785] [MC] Reading from public effective user settings. 2019-09-03 17:49:20.651996+0530 Runner[1013:306796] flutter: Observatory listening on http://127.0.0.1:63667/cey7AdUNgns=/ 2019-09-03 17:49:26.574791+0530 Runner[1013:306721] To get test ads on this device, set: request.testDevices = @[ @"684f492ed90129eed8cdc3023af69982" ]; 2019-09-03 17:49:32.023937+0530 Runner[1013:306813] - [I-ACS025031] AdMob App ID changed. Original, new: (nil), ca-app-pub-3940256099942544~1458002511 2019-09-03 17:49:32.111234+0530 Runner[1013:306813] - [I-ACS023007] Analytics v.60101000 started 2019-09-03 17:49:32.113654+0530 Runner[1013:306813] - [I-ACS023008] To enable debug logging set the following application argument: -APMAnalyticsDebugEnabled (see http://goo.gl/RfcP7r)

sakebook commented 5 years ago

We have tested on real iPhone6

I see.

What does modulo 25 mean and module 10?

Does this error occur in the example app?

Please show me flutter doctor -v log.

NavneetSi commented 5 years ago

i talk about this-> flutter_native_ads/example/lib/main.dart at line 22 - if (index % 10 == 0) {

now if I set % 10 then it causes bad access from Xcode and if I set more than 15 than its work well. so it looks like not ad Load issue.

Flutter doctor -v

[✓] Flutter (Channel dev, v1.9.7, on Mac OS X 10.14.6 18G87, locale en-GB) • Flutter version 1.9.7 at /Users/mac/flutter • Framework revision 4984d1a33d (6 days ago), 2019-08-28 17:04:07 -0700 • Engine revision f52c0b9270 • Dart version 2.5.0

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2) • Android SDK at /Users/mac/Library/Android/sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-29, build-tools 29.0.2 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405) • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 10.3) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 10.3, Build version 10G8 • CocoaPods version 1.7.5

[✓] Android Studio (version 3.5) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin version 38.2.3 • Dart plugin version 191.8423 • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)

[✓] Connected device (1 available) • Significant’s iPhone 5 • abd83c4c0e60425f795757f3aa394a4d5de91e87 • ios • iOS 10.3.3

• No issues found!

sakebook commented 5 years ago

now if I set % 10 then it causes bad access from Xcode and if I set more than 15 than its work well. so it looks like not ad Load issue.

Hmm. That's strange. Is there reproducibility?

NavneetSi commented 5 years ago

Yes, that's reproducing

NavneetSi commented 5 years ago

Please help for new one

Now I try to integrate it into my app(in objective C) and installing pods. that's a time it causes below error

native_ads does not specify a Swift version and none of the targets (Runner) integrating it have the SWIFT_VERSION attribute set. Please contact the author or set the SWIFT_VERSION attribute in at least one of the targets that integrate this pod.

i try to solve using this https://stackoverflow.com/questions/54912188/flutter-plugin-ios-build-fail/54919007 but still the same error

Screenshot 2019-09-04 at 4 21 21 PM

sakebook commented 5 years ago

SWIFT_VERSION attribute set

I will try it.