iOS Question Setup maxserver for AdView

fishwolf

Well-Known Member
Licensed User
Longtime User
I use the iAdMob library 1.0, but the macserver return this error

ld: library not found for -lGoogleAdMobAds

i have check the iadmod .h .a into mac server

i have try to use ver. 1.1.0, but if i add the .xml on my library folder the library is not available.

B4X:
Parsing code.  0.03
Compiling code.  0.14
Compiling layouts code.  0.04
Compiling debugger engine code.  0.62
Building Xcode project  0.17
Sending data to remote compiler.  Error
Out: Build settings from command line:
  ARCHS = armv7
  CODE_SIGN_IDENTITY = iPhone
  CONFIGURATION_BUILD_DIR = /Users/guest/Desktop/Basic4Ios/macserver-aa/UploadedProjects/beta180/Payload
  OTHER_CODE_SIGN_FLAGS = --keychain beta180
  PRODUCT_NAME = AdViewTest
  PROVISIONING_PROFILE = 4ce62ee4-dbe4-4835-8c96-da8505acd45f

=== BUILD TARGET B4iProject OF PROJECT B4iProject WITH CONFIGURATION Release ===

Check dependencies

Write auxiliary files
/bin/mkdir -p /Users/guest/Desktop/Basic4Ios/macserver-aa/UploadedProjects/beta180/build/B4iProject.build/Release-iphoneos/B4iProject.build
write-file /Users/guest/Desktop/Basic4Ios/macserver-aa/UploadedProjects/beta180/build/B4iProject.build/Release-iphoneos/B4iProject.build/AdViewTest.hmap
write-file /Users/guest/Desktop/Basic4Ios/macserver-aa/UploadedProjects/beta180/build/B4iProject.build/Release-iphoneos/B4iProject.build/AdViewTest-all-non-framework-target-headers.hmap
write-file /Users/guest/Desktop/Basic4Ios/macserver-aa/UploadedProjects/beta180/build/B4iProject.build/Release-iphoneos/B4iProject.build/AdViewTest-generated-files.hmap
write-file /Users/guest/Desktop/Basic4Ios/macserver-aa/UploadedProjects/beta180/build/B4iProject.build/Release-iphoneos/B4iProject.build/AdViewTest-own-target-headers.hmap
write-file /Users/guest/Desktop/Basic4Ios/macserver-aa/UploadedProjects/beta180/build/B4iProject.build/Release-iphoneos/B4iProject.build/AdViewTest-project-headers.hmap
write-file /Users/guest/Desktop/Basic4Ios/macserver-aa/UploadedProjects/beta180/build/B4iProject.build/Release-iphoneos/B4iProject.build/AdViewTest-all-target-headers.hmap
/bin/mkdir -p /Users/guest/Desktop/Basic4Ios/macserver-aa/UploadedProjects/beta180/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7
write-file /Users/guest/Desktop/Basic4Ios/macserver-aa/UploadedProjects/beta180/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/AdViewTest.LinkFileList

Create product structure
/bin/mkdir -p /Users/guest/Desktop/Basic4Ios/macserver-aa/UploadedProjects/beta180/Payload/AdViewTest.app

ProcessInfoPlistFile Payload/AdViewTest.app/Info.plist B4iProject/B4iProject-Info.plist
  cd /Users/guest/Desktop/Basic4Ios/macserver-aa/UploadedProjects/beta180
  export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin"
  builtin-infoPlistUtility /Users/guest/Desktop/Basic4Ios/macserver-aa/UploadedProjects/beta180/B4iProject/B4iProject-Info.plist -genpkginfo /Users/guest/Desktop/Basic4Ios/macserver-aa/UploadedProjects/beta180/Payload/AdViewTest.app/PkgInfo -expandbuildsettings -format binary -platform iphoneos -o /Users/guest/Desktop/Basic4Ios/macserver-aa/UploadedProjects/beta180/Payload/AdViewTest.app/Info.plist

CompileC build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/main.o B4iProject/main.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
  cd /Users/guest/Desktop/Basic4Ios/macserver-aa/UploadedProjects/beta180
  export LANG=en_US.US-ASCII
  export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin"
  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch armv7 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DNS_BLOCK_ASSERTIONS=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -fvisibility=hidden -Wno-sign-conversion -miphoneos-version-min=7.0 -iquote /Users/guest/Desktop/Basic4Ios/macserver-aa/UploadedProjects/beta180/build/B4iProject.build/Release-iphoneos/B4iProject.build/AdViewTest-generated-files.hmap -I/Users/guest/Desktop/Basic4Ios/macserver-aa/UploadedProjects/beta180/build/B4iProject.build/Release-iphoneos/B4iProject.build/AdViewTest-own-target-headers.hmap -I/Users/guest/Desktop/Basic4Ios/macserver-aa/UploadedProjects/beta180/build/B4iProject.build/Release-iphoneos/B4iProject.build/AdViewTest-all-target-headers.hmap -iquote /Users/guest/Desktop/Basic4Ios/macserver-aa/UploadedProjects/beta180/build/B4iProject.build/Release-iphoneos/B4iProject.build/AdViewTest-project-headers.hmap -I/Users/guest/Desktop/Basic4Ios/macserver-aa/UploadedProjects/beta180/Payload/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/guest/Desktop/Basic4Ios/macserver-aa/UploadedProjects/beta180/build/B4iProject.build/Release-iphoneos/B4iProject.build/DerivedSources/armv7 -I/Users/guest/Desktop/Basic4Ios/macserver-aa/UploadedProjects/beta180/build/B4iProject.build/Release-iphoneos/B4iProject.build/DerivedSources -F/Users/guest/Desktop/Basic4Ios/macserver-aa/UploadedProjects/beta180/Payload -F../../Libs -MMD -MT dependencies -MF /Users/guest/Desktop/Basic4Ios/macserver-aa/UploadedProjects/beta180/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/main.d --serialize-diagnostics /Users/guest/Desktop/Basic4Ios/macserver-aa/UploadedProjects/beta180/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/main.dia -c /Users/guest/Desktop/Basic4Ios/macserver-aa/UploadedProjects/beta180/B4iProject/main.m -o /Users/guest/Desktop/Basic4Ios/macserver-aa/UploadedProjects/beta180/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/main.o

CompileC build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/b4i_main.o B4iProject/b4i_main.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
  cd /Users/guest/Desktop/Basic4Ios/macserver-aa/UploadedProjects/beta180
  export LANG=en_US.US-ASCII
  export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin"
  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch armv7 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DNS_BLOCK_ASSERTIONS=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -fvisibility=hidden -Wno-sign-conversion -miphoneos-version-min=7.0 -iquote /Users/guest/Desktop/Basic4Ios/macserver-aa/UploadedProjects/beta180/build/B4iProject.build/Release-iphoneos/B4iProject.build/AdViewTest-generated-files.hmap -I/Users/guest/Desktop/Basic4Ios/macserver-aa/UploadedProjects/beta180/build/B4iProject.build/Release-iphoneos/B4iProject.build/AdViewTest-own-target-headers.hmap -I/Users/guest/Desktop/Basic4Ios/macserver-aa/UploadedProjects/beta180/build/B4iProject.build/Release-iphoneos/B4iProject.build/AdViewTest-all-target-headers.hmap -iquote /Users/guest/Desktop/Basic4Ios/macserver-aa/UploadedProjects/beta180/build/B4iProject.build/Release-iphoneos/B4iProject.build/AdViewTest-project-headers.hmap -I/Users/guest/Desktop/Basic4Ios/macserver-aa/UploadedProjects/beta180/Payload/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/guest/Desktop/Basic4Ios/macserver-aa/UploadedProjects/beta180/build/B4iProject.build/Release-iphoneos/B4iProject.build/DerivedSources/armv7 -I/Users/guest/Desktop/Basic4Ios/macserver-aa/UploadedProjects/beta180/build/B4iProject.build/Release-iphoneos/B4iProject.build/DerivedSources -F/Users/guest/Desktop/Basic4Ios/macserver-aa/UploadedProjects/beta180/Payload -F../../Libs -MMD -MT dependencies -MF /Users/guest/Desktop/Basic4Ios/macserver-aa/UploadedProjects/beta180/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/b4i_main.d --serialize-diagnostics /Users/guest/Desktop/Basic4Ios/macserver-aa/UploadedProjects/beta180/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/b4i_main.dia -c /Users/guest/Desktop/Basic4Ios/macserver-aa/UploadedProjects/beta180/B4iProject/b4i_main.m -o /Users/guest/Desktop/Basic4Ios/macserver-aa/UploadedProjects/beta180/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/b4i_main.o

Ld Payload/AdViewTest.app/AdViewTest normal armv7
  cd /Users/guest/Desktop/Basic4Ios/macserver-aa/UploadedProjects/beta180
  export IPHONEOS_DEPLOYMENT_TARGET=7.0
  export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin"
  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk -L/Users/guest/Desktop/Basic4Ios/macserver-aa/UploadedProjects/beta180/Payload -L../../Libs -F/Users/guest/Desktop/Basic4Ios/macserver-aa/UploadedProjects/beta180/Payload -F../../Libs -filelist /Users/guest/Desktop/Basic4Ios/macserver-aa/UploadedProjects/beta180/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/AdViewTest.LinkFileList -ObjC -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=7.0 -lCore -framework Foundation -framework CoreGraphics -framework UIKit -liAdMob -framework AVFoundation -framework AudioToolbox -framework AdSupport -framework CoreGraphics -framework CoreTelephony -framework EventKit -framework EventKitUI -framework MessageUI -framework StoreKit -framework SystemConfiguration -lGoogleAdMobAds -liDebug -Xlinker -dependency_info -Xlinker /Users/guest/Desktop/Basic4Ios/macserver-aa/UploadedProjects/beta180/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/AdViewTest_dependency_info.dat -o /Users/guest/Desktop/Basic4Ios/macserver-aa/UploadedProjects/beta180/Payload/AdViewTest.app/AdViewTest
ld: library not found for -lGoogleAdMobAds
clang: error: linker command failed with exit code 1 (use -v to see invocation)


Error: ** BUILD FAILED **


The following build commands failed:
   Ld Payload/AdViewTest.app/AdViewTest normal armv7
(1 failure)
 

ilan

Expert
Licensed User
Longtime User
Thanks, now work fine

for interstitial banner (full screen) is necessaty iadmob 1.1

how to i must install library?

if i copy the .xml file into libraries folder on PC, the ide don't see the new library (also if i do refresh)


what you need to do is copy .xml file to PC (windows) lib forlder and the .a + .h file to your Mac Lib folder

Library installation
The zip file contains three files with the following extensions: .xml, .a and .h.
You need to copy the xml file to the internal libraries folder on the Windows computer.
If you are using a local Mac builder then you need to copy the .a and .h files to the Mac Libs folder.

https://www.b4x.com/android/forum/threads/iadmob.47319/

there is also a sample project i have uploaded Link
 
Upvote 0

ilan

Expert
Licensed User
Longtime User
i am now not at home so i cannot tell you what is written in the IDE but you can download this example and see if you will be able to run interstitial ads
if yes that means its the new iAdmob version (and you should tell erel to change the version number in the XML file)

iAdMob Interstitial Ad Example
 
Upvote 0

fishwolf

Well-Known Member
Licensed User
Longtime User
with b4i 1.50 i receive this error
B4X:
Sending data to remote compiler.  Error
B4i line: 31
iad.Initialize(\
bad receiver type 'int *'
Out: Build settings from command line:
  ARCHS = armv7
  CODE_SIGN_IDENTITY = iPhone
  CONFIGURATION_BUILD_DIR = /Users/guest/Desktop/Basic4Ios/macserver-aa Ver. 1.25/UploadedProjects/beta180/Payload
  OTHER_CODE_SIGN_FLAGS = --keychain beta180
  PRODUCT_NAME = Intentistial
  PROVISIONING_PROFILE = 4ce62ee4-dbe4-4835-8c96-da8505acd45f
 
Upvote 0
Top