iOS Question How to compile B4iProject.xcodeproj in XCode

Semen Matusovskiy

Well-Known Member
Licensed User
Hi, guys --

I try to recompile B4iProject (in hope to add NotificationServiceExtension and to check Brandsum's idea).
XCode gives a lot of errors, unlike ipa, created by b4i, works fine.

Guess, it's necessary to set some flags inside XCode IDE.
Does somebody has positive experience in this question ?
 

Brandsum

Well-Known Member
Licensed User
Xcode usually give hints how to solve those errors. Can you post those error?

I usually build every release build and upload from xcode to get crash reports and it shows exact line where the app crashed. At first I also got lots of error but after some research I saw those are simple mistakes like selecting correct architecture manually choosing certificates etc.
 
Last edited:
Upvote 0

Semen Matusovskiy

Well-Known Member
Licensed User
This is a new B4I project with adding only one line - #ProvisionFile : Firebase.mobileprovision
Compiled in Release mode

XCode 10.2 shows - see png. The same in XCode 10.3.
2.PNG


Inside XCode I press - Product Build For Running (but errors are shown from the beginning, when I open a project)
 
Last edited:
Upvote 0

Brandsum

Well-Known Member
Licensed User
Change the architecture of b4iproject under project and then again select b4iproject under target and set architecture to standard architecture from build setting. After that from product menu select clean build folder and then build again.
 

Attachments

  • upload_2019-9-9_21-0-33.png
    upload_2019-9-9_21-0-33.png
    93.7 KB · Views: 299
Upvote 0

Semen Matusovskiy

Well-Known Member
Licensed User
Now much better. But remains a problem with iSvg.

Previously I downloaded a library from forum. Meanwhile something was present in B4iBuildServer distributive. Maybe, I will fix this trouble.

BTW, yesterday I was able to change Extension bundle after adding (so, I hope, no need in another certificates)

3.PNG
 
Upvote 0

Semen Matusovskiy

Well-Known Member
Licensed User
You are right. Well, I created new provision linked with IOS distribution certificate.

So, the sequence of my actions.

Windows
1) Compile in B4I (as release)
MAC:
2) Open XCode project, add new target (NotificationServiceExtension)
3) Change architecture to standard, select provisions, build for running.
4) Product - Archive - Export.
5) Rename XCode ipa (the same name as B4i ipa) and replace B4i ipa.
6) Install using B4i-Bridge

Not too hard and is required for App Store only. So, not a problem.

But I did not notice results. Nothing changed. Pushes work in foreground/background only.
What's wrong ? Maybe we need to send local notification from this extension ?
 
Last edited:
Upvote 0
Top