iOS Question Compile error with 1.80

fishwolf

Well-Known Member
Licensed User
Longtime User
I have update to B4I 1.80, i have update the lib folder of mac server, i cannot move or delete admob library

the compiler failed with this error

B4X:
Parsing code.  0.14
Compiling code.  0.68
Compiling layouts code.  0.21
Compiling debugger engine code.  1.78
Building Xcode project  0.07
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 = InfoAgility
  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/InfoAgility-own-target-headers.hmap
write-file /Users/guest/Desktop/Basic4Ios/macserver-aa/UploadedProjects/beta180/build/B4iProject.build-

................

Ld Payload/InfoAgility.app/InfoAgility 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/InfoAgility.LinkFileList -ObjC -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=7.0 -lCore -framework Foundation -framework CoreGraphics -framework UIKit -liPhone -liHUD -liAdMob -liStringUtils -liHttp -liJSON -liLocation -framework AVFoundation -framework MessageUI -framework CoreMotion -framework AudioToolbox -framework AdSupport -framework CoreGraphics -framework CoreTelephony -framework EventKit -framework EventKitUI -framework StoreKit -framework SystemConfiguration -lGoogleAdMobAds -framework CoreLocation -liDebug -Xlinker -dependency_info -Xlinker /Users/guest/Desktop/Basic4Ios/macserver-aa/UploadedProjects/beta180/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/InfoAgility_dependency_info.dat -o /Users/guest/Desktop/Basic4Ios/macserver-aa/UploadedProjects/beta180/Payload/InfoAgility.app/InfoAgility
ld: library not found for -lGoogleAdMobAds
clang: error: linker command failed with exit code 1 (use -v to see invocation)


Error: ** BUILD FAILED **
 
Last edited:

fishwolf

Well-Known Member
Licensed User
Longtime User
i haven't copy the admod library in folder.

With mac os when you copy over a exist folder, os replace all files and delete the not exist files on source.
 
Upvote 0

fifiddu70

Well-Known Member
Licensed User
Longtime User
forgive me , I did not understand , I work with b4i on my windows , use the mac just to publish my app , because the previous version of b4i worked and not now ? which folder I miss the b4i ? could you explain where the folder should I install on the Admob b4i ? or if I do not ask much , could you do me a tutorial video on how you solved it ? I thank you in advance for your kindness
 
Upvote 0

fifiddu70

Well-Known Member
Licensed User
Longtime User
erel i have this error, i try to install latest version but not work.

Parsing code. 0.02
Compiling code. 0.13
Compiling layouts code. 0.03
Compiling debugger engine code. 0.73
Building Xcode project 0.06
Sending data to remote compiler. Error
Out: Build settings from command line:
ARCHS = armv7
CODE_SIGN_IDENTITY = iPhone
CONFIGURATION_BUILD_DIR = /Users/administrator/Documents/UploadedProjects/******/Payload
OTHER_CODE_SIGN_FLAGS = --keychain ******
PRODUCT_NAME = scratchpad
PROVISIONING_PROFILE = 4da2f89a-8ea9-4006-a11d-2afb0b9d6700

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

Check dependencies

Write auxiliary files
/bin/mkdir -p /Users/administrator/Documents/UploadedProjects/*******/build/B4iProject.build/Release-iphoneos/B4iProject.build
write-file /Users/administrator/Documents/UploadedProjects/*******/build/B4iProject.build/Release-iphoneos/B4iProject.build/scratchpad-all-non-framework-target-headers.hmap
write-file /Users/administrator/Documents/UploadedProjects/*****/build/B4iProject.build/Release-iphoneos/B4iProject.build/scratchpad-all-target-headers.hmap
/bin/mkdir -p /Users/administrator/Documents/UploadedProjects/*****/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7
write-file /Users/administrator/Documents/UploadedProjects/*****/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/scratchpad.LinkFileList
write-file /Users/administrator/Documents/UploadedProjects/*****/build/B4iProject.build/Release-iphoneos/B4iProject.build/scratchpad-project-headers.hmap
write-file /Users/administrator/Documents/UploadedProjects/******/build/B4iProject.build/Release-iphoneos/B4iProject.build/scratchpad.hmap
write-file /Users/administrator/Documents/UploadedProjects/*****/build/B4iProject.build/Release-iphoneos/B4iProject.build/scratchpad-generated-files.hmap
write-file /Users/administrator/Documents/UploadedProjects/******/build/B4iProject.build/Release-iphoneos/B4iProject.build/scratchpad-own-target-headers.hmap

Create product structure
/bin/mkdir -p /Users/administrator/Documents/UploadedProjects/******/Payload/scratchpad.app

ProcessInfoPlistFile Payload/scratchpad.app/Info.plist B4iProject/B4iProject-Info.plist
cd /Users/administrator/Documents/UploadedProjects/*******
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
builtin-infoPlistUtility /Users/administrator/Documents/UploadedProjects/*****/B4iProject/B4iProject-Info.plist -genpkginfo /Users/administrator/Documents/UploadedProjects/abed7fc/Payload/scratchpad.app/PkgInfo -expandbuildsettings -format binary -platform iphoneos -o /Users/administrator/Documents/UploadedProjects/******/Payload/scratchpad.app/Info.plist

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/administrator/Documents/UploadedProjects/******
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/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/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/administrator/Documents/UploadedProjects/*****/build/B4iProject.build/Release-iphoneos/B4iProject.build/scratchpad-generated-files.hmap -I/Users/administrator/Documents/UploadedProjects/******/build/B4iProject.build/Release-iphoneos/B4iProject.build/scratchpad-own-target-headers.hmap -I/Users/administrator/Documents/UploadedProjects/*****/build/B4iProject.build/Release-iphoneos/B4iProject.build/scratchpad-all-target-headers.hmap -iquote /Users/administrator/Documents/UploadedProjects/******/build/B4iProject.build/Release-iphoneos/B4iProject.build/scratchpad-project-headers.hmap -I/Users/administrator/Documents/UploadedProjects/***/Payload/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/administrator/Documents/UploadedProjects/***/build/B4iProject.build/Release-iphoneos/B4iProject.build/DerivedSources/armv7 -I/Users/administrator/Documents/UploadedProjects/***/build/B4iProject.build/Release-iphoneos/B4iProject.build/DerivedSources -F/Users/administrator/Documents/UploadedProjects/*****/Payload -F../../Libs -MMD -MT dependencies -MF /Users/administrator/Documents/UploadedProjects/***/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/b4i_main.d --serialize-diagnostics /Users/administrator/Documents/UploadedProjects/***/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/b4i_main.dia -c /Users/administrator/Documents/UploadedProjects/****/B4iProject/b4i_main.m -o /Users/administrator/Documents/UploadedProjects/abed7fc/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/b4i_main.o

CompileC build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/LS_scratchpad.o B4iProject/LS_scratchpad.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/administrator/Documents/UploadedProjects/****
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/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/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/administrator/Documents/UploadedProjects/abed7fc/build/B4iProject.build/Release-iphoneos/B4iProject.build/scratchpad-generated-files.hmap -I/Users/administrator/Documents/UploadedProjects/****/build/B4iProject.build/Release-iphoneos/B4iProject.build/scratchpad-own-target-headers.hmap -I/Users/administrator/Documents/UploadedProjects/***/build/B4iProject.build/Release-iphoneos/B4iProject.build/scratchpad-all-target-headers.hmap -iquote /Users/administrator/Documents/UploadedProjects/***/build/B4iProject.build/Release-iphoneos/B4iProject.build/scratchpad-project-headers.hmap -I/Users/administrator/Documents/UploadedProjects/***/Payload/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/administrator/Documents/UploadedProjects/***/build/B4iProject.build/Release-iphoneos/B4iProject.build/DerivedSources/armv7 -I/Users/administrator/Documents/UploadedProjects/abed7fc/build/B4iProject.build/Release-iphoneos/B4iProject.build/DerivedSources -F/Users/administrator/Documents/UploadedProjects/****/Payload -F../../Libs -MMD -MT dependencies -MF /Users/administrator/Documents/UploadedProjects/****/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/LS_scratchpad.d --serialize-diagnostics /Users/administrator/Documents/UploadedProjects/****/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/LS_scratchpad.dia -c /Users/administrator/Documents/UploadedProjects/****/B4iProject/LS_scratchpad.m -o /Users/administrator/Documents/UploadedProjects/****/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/LS_scratchpad.o

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/administrator/Documents/UploadedProjects/****
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/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/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/administrator/Documents/UploadedProjects/****/build/B4iProject.build/Release-iphoneos/B4iProject.build/scratchpad-generated-files.hmap -I/Users/administrator/Documents/UploadedProjects/****/build/B4iProject.build/Release-iphoneos/B4iProject.build/scratchpad-own-target-headers.hmap -I/Users/administrator/Documents/UploadedProjects/*****/build/B4iProject.build/Release-iphoneos/B4iProject.build/scratchpad-all-target-headers.hmap -iquote /Users/administrator/Documents/UploadedProjects/****/build/B4iProject.build/Release-iphoneos/B4iProject.build/scratchpad-project-headers.hmap -I/Users/administrator/Documents/UploadedProjects/****/Payload/*****-I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/administrator/Documents/UploadedProjects/*****/build/B4iProject.build/Release-iphoneos/B4iProject.build/DerivedSources/armv7 -I/Users/administrator/Documents/UploadedProjects/***/build/B4iProject.build/Release-iphoneos/B4iProject.build/DerivedSources -F/Users/administrator/Documents/UploadedProjects/***/Payload -F../../Libs -MMD -MT dependencies -MF /Users/administrator/Documents/UploadedProjects/*****/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/main.d --serialize-diagnostics /Users/administrator/Documents/UploadedProjects/****/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/main.dia -c /Users/administrator/Documents/UploadedProjects/****/B4iProject/main.m -o /Users/administrator/Documents/UploadedProjects/****/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/main.o

Ld Payload/scratchpad.app/scratchpad normal armv7
cd /Users/administrator/Documents/UploadedProjects/***
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/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/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/administrator/Documents/UploadedProjects/****/Payload -L../../Libs -F/Users/administrator/Documents/UploadedProjects/****/Payload -F../../Libs -filelist /Users/administrator/Documents/UploadedProjects/*****/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/scratchpad.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/administrator/Documents/UploadedProjects/*****/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/scratchpad_dependency_info.dat -o /Users/administrator/Documents/UploadedProjects/*****/Payload/scratchpad.app/scratchpad
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/scratchpad.app/scratchpad normal armv7
(1 failure)


Erel please helpme. thanks.
 
Upvote 0

fishwolf

Well-Known Member
Licensed User
Longtime User
forgive me , I did not understand , I work with b4i on my windows , use the mac just to publish my app , because the previous version of b4i worked and not now ? which folder I miss the b4i ? could you explain where the folder should I install on the Admob b4i ? or if I do not ask much , could you do me a tutorial video on how you solved it ? I thank you in advance for your kindness

i have my mac server for compiler with b4i, i haven't the host builder licence.
in this case you must download the admod library on mac and put into mac server folder

www.b4x.com/b4i/files/libGoogleAdMobAds.a.zip
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
The xml file was missing from the updated iAdMob zip file. Please download it again: https://www.b4x.com/android/forum/threads/iadmob.47319/#content
Make sure to restart the IDE after you update this library.

i have my mac server for compiler with b4i, i haven't the host builder licence.
in this case you must download the admod library on mac and put into mac server folder

www.b4x.com/b4i/files/libGoogleAdMobAds.a.zip
With the latest version of iAdMob library the configuration is a bit different. See the installation instructions.
 
Upvote 0
Top