iOS Question Error on local builder

Similar threads

B4i Question Merging OBJC code
B4i Question Compiling Error
B4i Question XCode 11 error
B4i Question Error compiling in debug mode
B4i Question Firebase error

Keith Yong

Active Member
Licensed User
Hi, need help, actually I'm library that created by Harris Hafeez for the gif animation (https://www.b4x.com/android/forum/threads/gif-view.54646/#content) and I manage to run it from Hosted Builder, however when I run on Local Builder, I get this error.

B4X:
B4i version: 2.51
Parsing code.    (0.01s)
Compiling code.    (0.02s)
Compiling layouts code.    (0.00s)
Compiling debugger engine code.    (1.14s)
Building Xcode project    (0.03s)
Sending data to remote compiler.    Error
Out: Build settings from command line:
    ARCHS = i386
    CODE_SIGNING_REQUIRED = NO
    CONFIGURATION_BUILD_DIR = /Users/Keith/Documents/macserver_25/UploadedProjects/<user id>/Payload
    PRODUCT_NAME = Gif Viewer
    SDKROOT = iphonesimulator9.3

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

Check dependencies

Create product structure
/bin/mkdir -p /Users/Keith/Documents/macserver_25/UploadedProjects/<user id>/Payload/Gif\ Viewer.app

ProcessInfoPlistFile Payload/Gif\ Viewer.app/Info.plist B4iProject/B4iProject-Info.plist
    cd /Users/Keith/Documents/macserver_25/UploadedProjects/<user id>
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    builtin-infoPlistUtility /Users/Keith/Documents/macserver_25/UploadedProjects/<user id>/B4iProject/B4iProject-Info.plist -genpkginfo /Users/Keith/Documents/macserver_25/UploadedProjects/<user id>/Payload/Gif\ Viewer.app/PkgInfo -expandbuildsettings -format binary -platform iphonesimulator -o /Users/Keith/Documents/macserver_25/UploadedProjects/<user id>/Payload/Gif\ Viewer.app/Info.plist

CompileC build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/b4i_main.o B4iProject/b4i_main.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/Keith/Documents/macserver_25/UploadedProjects/<user id>
    export LANG=en_US.US-ASCII
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.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 i386 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -gmodules -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/var/folders/mw/zf5ysbj56438692_3rmvwq780000gn/C/org.llvm.clang/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -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-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/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=7.0 -fvisibility=hidden -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch -iquote /Users/Keith/Documents/macserver_25/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Gif\ Viewer-generated-files.hmap -I/Users/Keith/Documents/macserver_25/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Gif\ Viewer-own-target-headers.hmap -I/Users/Keith/Documents/macserver_25/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Gif\ Viewer-all-target-headers.hmap -iquote /Users/Keith/Documents/macserver_25/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Gif\ Viewer-project-headers.hmap -I/Users/Keith/Documents/macserver_25/UploadedProjects/<user id>/Payload/include -I/Users/Keith/Documents/macserver_25/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/DerivedSources/i386 -I/Users/Keith/Documents/macserver_25/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/DerivedSources -F/Users/Keith/Documents/macserver_25/UploadedProjects/<user id>/Payload -F../../Libs -MMD -MT dependencies -MF /Users/Keith/Documents/macserver_25/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/b4i_main.d --serialize-diagnostics /Users/Keith/Documents/macserver_25/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/b4i_main.dia -c /Users/Keith/Documents/macserver_25/UploadedProjects/<user id>/B4iProject/b4i_main.m -o /Users/Keith/Documents/macserver_25/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/b4i_main.o

CompileC build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/main.o B4iProject/main.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/Keith/Documents/macserver_25/UploadedProjects/<user id>
    export LANG=en_US.US-ASCII
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.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 i386 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -gmodules -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/var/folders/mw/zf5ysbj56438692_3rmvwq780000gn/C/org.llvm.clang/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -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-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/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=7.0 -fvisibility=hidden -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch -iquote /Users/Keith/Documents/macserver_25/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Gif\ Viewer-generated-files.hmap -I/Users/Keith/Documents/macserver_25/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Gif\ Viewer-own-target-headers.hmap -I/Users/Keith/Documents/macserver_25/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Gif\ Viewer-all-target-headers.hmap -iquote /Users/Keith/Documents/macserver_25/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Gif\ Viewer-project-headers.hmap -I/Users/Keith/Documents/macserver_25/UploadedProjects/<user id>/Payload/include -I/Users/Keith/Documents/macserver_25/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/DerivedSources/i386 -I/Users/Keith/Documents/macserver_25/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/DerivedSources -F/Users/Keith/Documents/macserver_25/UploadedProjects/<user id>/Payload -F../../Libs -MMD -MT dependencies -MF /Users/Keith/Documents/macserver_25/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/main.d --serialize-diagnostics /Users/Keith/Documents/macserver_25/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/main.dia -c /Users/Keith/Documents/macserver_25/UploadedProjects/<user id>/B4iProject/main.m -o /Users/Keith/Documents/macserver_25/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/main.o

Ld Payload/Gif\ Viewer.app/Gif\ Viewer normal i386
    cd /Users/Keith/Documents/macserver_25/UploadedProjects/<user id>
    export IPHONEOS_DEPLOYMENT_TARGET=7.0
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.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 i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk -L/Users/Keith/Documents/macserver_25/UploadedProjects/<user id>/Payload -L../../Libs -F/Users/Keith/Documents/macserver_25/UploadedProjects/<user id>/Payload -F../../Libs -filelist /Users/Keith/Documents/macserver_25/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/Gif\ Viewer.LinkFileList -mios-simulator-version-min=7.0 -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -ObjC -fobjc-arc -fobjc-link-runtime -lCore -framework Foundation -framework CoreGraphics -framework UIKit -lHHAnimatedGifView -framework AVFoundation -framework QuartzCore -framework ImageIO -framework CoreGraphics -framework MobileCoreServices -liDebug2 -Xlinker -dependency_info -Xlinker /Users/Keith/Documents/macserver_25/UploadedProjects/<user id>/build/B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/Gif\ Viewer_dependency_info.dat -o /Users/Keith/Documents/macserver_25/UploadedProjects/<user id>/Payload/Gif\ Viewer.app/Gif\ Viewer
ld: warning: ignoring file ../../Libs/libHHAnimatedGifView.a, missing required architecture i386 in file ../../Libs/libHHAnimatedGifView.a (2 slices)
Undefined symbols for architecture i386:
  "_OBJC_CLASS_$_HHAnimatedGifView", referenced from:
      objc-class-ref in b4i_main.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)


Error: ** BUILD FAILED **


The following build commands failed:
    Ld Payload/Gif\ Viewer.app/Gif\ Viewer normal i386
(1 failure)
 

winjiadh

Active Member
Licensed User
Now I update Xcode to 8.1,and b4i to 3.5,I run it ,error
maybe my mac is macOS Sierra 10.12.1
 
Top