iOS Question Error in b4i 4.8

Status
Not open for further replies.

Pooya1

Active Member
Licensed User
I try compile project that it was working in b4i 4.3
xCode is 9 and java jdk is 9
Also i copy all libraries that my app need to it (firebase,googlemap and other)
But dont replace main file or core (only library)
I download again firebase framework from site again
It get error
Of course when i use firebase library,this error happen

Ld build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/Tavos normal armv7
cd /Users/meirak/Documents/Programming/B4i/B4iBuildServer4.4/UploadedProjects/<user id>
export IPHONEOS_DEPLOYMENT_TARGET=9.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/meirak/Documents/Programming/AndroidSDK_Mac/platform-tools:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Frameworks/Mono.framework/Versions/Current/Commands"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.1.sdk -L/Users/meirak/Documents/Programming/B4i/B4iBuildServer4.4/UploadedProjects/<user id>/Payload -L../../Libs -F/Users/meirak/Documents/Programming/B4i/B4iBuildServer4.4/UploadedProjects/<user id>/Payload -F../../Libs -filelist /Users/meirak/Documents/Programming/B4i/B4iBuildServer4.4/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/Tavos.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -miphoneos-version-min=9.0 -Xlinker -object_path_lto -Xlinker /Users/meirak/Documents/Programming/B4i/B4iBuildServer4.4/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/Tavos_lto.o -Xlinker -no_deduplicate -fobjc-arc -fobjc-link-runtime -ObjC -lCore -framework Foundation -framework CoreGraphics -framework UIKit -liHUD -liGoogleMaps -liLocation -liStringUtils -liSQL -liJSON -liContacts -liHttp -liHttpUtils2 -liMedia -liPhone -liSVG -liFirebaseAnalytics -liFirebaseNotifications -liUI8 -framework AVFoundation -framework CoreData -framework CoreLocation -framework CoreBluetooth -framework Accelerate -framework CoreText -framework GLKit -framework ImageIO -lc++ -licucore -lz -framework OpenGLES -framework QuartzCore -framework SystemConfiguration -framework GoogleMaps -framework GoogleMapsBase -framework GoogleMapsCore -lsqlite3 -framework Contacts -framework MessageUI -framework CoreMotion -lSVGKit-iOS.1.2.0 -framework CoreImage -lxml2 -framework CoreGraphics -framework FirebaseAnalytics -framework FirebaseInstanceID -framework GoogleInterchangeUtilities -framework GoogleSymbolUtilities -framework GoogleUtilities -framework FirebaseMessaging -framework GoogleIPhoneUtilities -Xlinker -dependency_info -Xlinker /Users/meirak/Documents/Programming/B4i/B4iBuildServer4.4/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/Tavos_dependency_info.dat -o /Users/meirak/Documents/Programming/B4i/B4iBuildServer4.4/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/Tavos
ld: warning: object file (../../Libs/libiContacts.a(iContacts.o)) was built for newer iOS version (9.2) than being linked (9.0)
ld: warning: object file (../../Libs/libiSVG.a(iSVG.o)) was built for newer iOS version (9.1) than being linked (9.0)
ld: warning: object file (../../Libs/libiFirebaseAnalytics.a(iFirebaseAnalytics.o)) was built for newer iOS version (9.3) than being linked (9.0)
ld: warning: object file (../../Libs/libiFirebaseNotifications.a(iFirebaseNotifications.o)) was built for newer iOS version (9.3) than being linked (9.0)

Ld build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/arm64/Tavos normal arm64
cd /Users/meirak/Documents/Programming/B4i/B4iBuildServer4.4/UploadedProjects/<user id>
export IPHONEOS_DEPLOYMENT_TARGET=9.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/meirak/Documents/Programming/AndroidSDK_Mac/platform-tools:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Frameworks/Mono.framework/Versions/Current/Commands"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.1.sdk -L/Users/meirak/Documents/Programming/B4i/B4iBuildServer4.4/UploadedProjects/<user id>/Payload -L../../Libs -F/Users/meirak/Documents/Programming/B4i/B4iBuildServer4.4/UploadedProjects/<user id>/Payload -F../../Libs -filelist /Users/meirak/Documents/Programming/B4i/B4iBuildServer4.4/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/arm64/Tavos.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -miphoneos-version-min=9.0 -Xlinker -object_path_lto -Xlinker /Users/meirak/Documents/Programming/B4i/B4iBuildServer4.4/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/arm64/Tavos_lto.o -Xlinker -no_deduplicate -fobjc-arc -fobjc-link-runtime -ObjC -lCore -framework Foundation -framework CoreGraphics -framework UIKit -liHUD -liGoogleMaps -liLocation -liStringUtils -liSQL -liJSON -liContacts -liHttp -liHttpUtils2 -liMedia -liPhone -liSVG -liFirebaseAnalytics -liFirebaseNotifications -liUI8 -framework AVFoundation -framework CoreData -framework CoreLocation -framework CoreBluetooth -framework Accelerate -framework CoreText -framework GLKit -framework ImageIO -lc++ -licucore -lz -framework OpenGLES -framework QuartzCore -framework SystemConfiguration -framework GoogleMaps -framework GoogleMapsBase -framework GoogleMapsCore -lsqlite3 -framework Contacts -framework MessageUI -framework CoreMotion -lSVGKit-iOS.1.2.0 -framework CoreImage -lxml2 -framework CoreGraphics -framework FirebaseAnalytics -framework FirebaseInstanceID -framework GoogleInterchangeUtilities -framework GoogleSymbolUtilities -framework GoogleUtilities -framework FirebaseMessaging -framework GoogleIPhoneUtilities -Xlinker -dependency_info -Xlinker /Users/meirak/Documents/Programming/B4i/B4iBuildServer4.4/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/arm64/Tavos_dependency_info.dat -o /Users/meirak/Documents/Programming/B4i/B4iBuildServer4.4/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/arm64/Tavos
ld: warning: object file (../../Libs/libiContacts.a(iContacts.o)) was built for newer iOS version (9.2) than being linked (9.0)
ld: warning: object file (../../Libs/libiSVG.a(iSVG.o)) was built for newer iOS version (9.1) than being linked (9.0)
ld: warning: object file (../../Libs/libiFirebaseAnalytics.a(iFirebaseAnalytics.o)) was built for newer iOS version (9.3) than being linked (9.0)
ld: warning: object file (../../Libs/libiFirebaseNotifications.a(iFirebaseNotifications.o)) was built for newer iOS version (9.3) than being linked (9.0)
ld: framework not found SVGKit for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)


Error: ** BUILD FAILED **


The following build commands failed:
Ld build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/arm64/Tavos normal arm64
(1 failure)
 

Pooya1

Active Member
Licensed User
And other point that i found it,it is when i compile app in release state,it compile well (without firebase)
Example when i use UI8 and try to use tableview and debug it,it get attachment error
But when i release it,it is compiling well
Firebase is except from up description and when i use it, i cannot release or debug it
Thanks for all things

Important Tip: When i set 7 for MinVersion and try to run app,it get error
You have to set 8 for MinVersion atleast and try run it
 

Attachments

  • firebase_error.txt
    23.8 KB · Views: 458
  • table_error.txt
    17.7 KB · Views: 282
Upvote 0

Pooya1

Active Member
Licensed User
Can you post the error message?
Of course
I attach it

Java version is 9
B4i 4.81

I follow below instruction
1- Set builder id
2- Add push notification profile to key folder
3- Check firebase message library
4- try to compile

My B4i code is :
B4X:
'Code module
#Region  Project Attributes
    #ApplicationLabel: B4i Example
    #Version: 1.0.0
    'Orientation possible values: Portrait, LandscapeLeft, LandscapeRight and PortraitUpsideDown
    #iPhoneOrientations: Portrait, LandscapeLeft, LandscapeRight
    #iPadOrientations: Portrait, LandscapeLeft, LandscapeRight, PortraitUpsideDown
    #Target: iPhone, iPad
    #MinVersion: 10
#End Region

Sub Process_Globals
    'These global variables will be declared once when the application starts.
    'Public variables can be accessed from all modules.
    Public App As Application
    Public NavControl As NavigationController
    Private Page1 As Page
    Private fm As FirebaseMessaging
End Sub

Private Sub Application_Start (Nav As NavigationController)
    'SetDebugAutoFlushLogs(True) 'Uncomment if program crashes before all logs are printed.
    NavControl = Nav
    Page1.Initialize("Page1")
    Page1.Title = "Page 1"
    Page1.RootPanel.Color = Colors.White
    NavControl.ShowPage(Page1)
    fm.Initialize("push")
End Sub

Private Sub Page1_Resize(Width As Int, Height As Int)
   
End Sub

Private Sub Application_Background
   
End Sub
 

Attachments

  • log.txt
    16.3 KB · Views: 363
Last edited:
Upvote 0

Pooya1

Active Member
Licensed User
Note:
I compile same project with B4i 4.8 and previous builder version and it is working now
But with B4i 4.8 and new version builder,it get error
 
Upvote 0

Pooya1

Active Member
Licensed User
You should read the tutorial: Firebase Integration
No No this sample source is example for you
I said already to you that i can compile firebase in B4i 4.3
But in B4i 4.8 when i check library and declare variable and after compile it error occur
Actually if i check library and dont write any code relate firebase and try to compile,it not get compile successfull
 
Upvote 0
Status
Not open for further replies.
Top