iOS Question [Solved] Error with AppTrackingTransparency

angel_

Well-Known Member
Licensed User
Longtime User
I am trying to implement this:


B4X:
Private Sub B4XPage_Created (Root1 As B4XView)
    'Load Layout
    '...
    Dim no As NativeObject = Me
    no.RunMethod("requestIDFA", Null) '<< Error
    Wait For GAD_TrackingAuthorization (Status As Int)

    analytics.Initialize
    analytics.SendEvent("login", CreateMap ("additional parameter": 100))

    IAd.Initialize("iad", vp.ID_INTERSTICIAL)
    IAd.RequestAd
End Sub

I have this error:
B4X:
*** mainpage: B4XPage_Created
requestIDFA
Error occurred on line: 234 (B4XMainPage)
Method not found: requestIDFA, target: [_root=<B4XViewWrapper: <B4IPanelView: 0x103b2b7b0; frame = (0 0; 0 20); layer = <CALayer: 0x28256d700>>>, _xui=<B4IXUI: 0x282745f20>, _drawer=[_meventname=Drawer, _mcallback=[_root=<B4XViewWrapper: <B4IPanelView: 0x103b2b7b0; frame = (0 0; 0 20); layer = <CALayer: 0x28256d700>>>, _xui=<B4IXUI: 0x282745f20>, _drawer=[_meventname=Drawer, _mcallback=[_root=<B4XViewWrapper: <B4IPanelView: 0x103b2b7b0; frame = (0 0; 0 20); layer = <CALayer: 0x28256d700>>>, _xui=<B4IXUI: 0x282745f20>, _drawer=[_meventname=Drawer, _mcallback=[_root=<B4XViewWrapper: <B4IPanelView: 0x103b2b7b0; frame = (0 0; 0 20); layer = <CALayer: 0x28256d700>>>, _xui=<B4IXUI: 0x282745f20>, _drawer=[_meventname=Drawer, _mcallback=[_root=<B4XViewWrapper: <B4IPanelView: 0x103b2b7b0; frame = (0 0; 0 20); layer = <CALayer: 0x28256d700>>>, _xui=<B4IXUI: 0x282745f20>, _drawer=
, _clvmenudrawer=, _lbldrawericono=<B4XViewWrapper: <UILabel: 0x103c411d0; frame = (8 0; 50 40); text = ''; clipsToBounds = YES; userInteractionEnabled = NO; animations = { bounds.origin=<CASpringAnimation: 0x282572e00>; bounds.size=<CASpringAnimation: 0x282572e20>; position=<CASpringAnimation: 0x282572e80>; }; layer = <_UILabelLayer: 0x2806589b0>>>, _lbldrawertexto=<B4XViewWrapper: <UILabel: 0x103c41810; frame = (66 0; 958 40); text = 'Política de Privacidad'; clipsToBounds = YES; userInteractionEnabled = NO; animations = { bounds.origin=<CASpringAnimation: 0x282573100>; bounds.size=<CASpringAnimation: 0x282573120>; position=<CASpringAnimation: 0x282573180>; }; layer = <_UILabelLayer: 0x280658d20>>>
, _mostrarmarcadorcentrado=0, _iad=<B4IAdInterstitial: 0x282560e80>, _app=<B4IApplicationWrapper: (null)>
, _mailc=<B4IMailComposer: (null)>, _mystore=<B4IStore: 0x282745f70>, _analytics=<iFirebaseAnalytics: 0x282745f80>
, _consent=<B4IConsentManager: 0x282561020>, _lblinfo1=<B4ILabelWrapper: (null)>, _lblinfo2=<B4ILabelWrapper: (null)>
...; userInterac (message truncated)...
Stack Trace: (
  CoreFoundation       373EC2DD-3A29-3E74-B85D-BE4EE925167A + 1159484
  libobjc.A.dylib      objc_exception_throw + 56
  CoreFoundation       373EC2DD-3A29-3E74-B85D-BE4EE925167A + 117344
  MyApp             +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 368
  MyApp             -[B4INativeObject RunMethod::] + 216
  MyApp             -[ResumableSub_b4xmainpage_B4XPage_Created resume::] + 2812
  MyApp             -[b4i_b4xmainpage _b4xpage_created::] + 548
  CoreFoundation       373EC2DD-3A29-3E74-B85D-BE4EE925167A + 1178464
  CoreFoundation       373EC2DD-3A29-3E74-B85D-BE4EE925167A + 5600
  MyApp             +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1608
 MyApp             -[B4ICommon CallSubDebug4::::] + 1080
 MyApp             -[B4ICommon CallSubDebug2::::] + 372
 MyApp             -[b4i_b4xpagesmanager _createpageifneeded::] + 1152
 MyApp             -[b4i_b4xpagesmanager _showpage::] + 828
 MyApp             -[b4i_b4xpagesmanager _addpage:::] + 1428
 MyApp             -[b4i_b4xpagesmanager _addpageandcreate:::] + 640
 MyApp             -[b4i_b4xpagesmanager _initialize:::] + 1892
 MyApp             -[b4i_main _application_start:] + 744
 CoreFoundation       373EC2DD-3A29-3E74-B85D-BE4EE925167A + 1178464
 CoreFoundation       373EC2DD-3A29-3E74-B85D-BE4EE925167A + 5600
 MyApp             +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1608
 MyApp             -[B4IShell runMethod:] + 448
 MyApp             -[B4IShell raiseEventImpl:method:args::] + 2172
 MyApp             -[B4IShellBI raiseEvent:event:params:] + 1580
 MyApp             __33-[B4I raiseUIEvent:event:params:]_block_invoke + 60
 libdispatch.dylib    16C9F613-7AE3-32CE-BA3A-B0DCF0464F0E + 393904
 libdispatch.dylib    16C9F613-7AE3-32CE-BA3A-B0DCF0464F0E + 397976
 libdispatch.dylib    16C9F613-7AE3-32CE-BA3A-B0DCF0464F0E + 64740
 CoreFoundation       373EC2DD-3A29-3E74-B85D-BE4EE925167A + 631152
 CoreFoundation       373EC2DD-3A29-3E74-B85D-BE4EE925167A + 607696
 CoreFoundation       CFRunLoopRunSpecific + 572
 GraphicsServices     GSEventRunModal + 160
 UIKitCore            7E4F912A-868A-3669-96D1-6D89F785509F + 11727728
 UIKitCore            UIApplicationMain + 164
 MyApp             main + 128
 libdyld.dylib        19E502BE-AFC1-3E00-AD3F-D28C0AE1287E + 4416
)
 

angel_

Well-Known Member
Licensed User
Longtime User
I am trying to implement this:


B4X:
Private Sub B4XPage_Created (Root1 As B4XView)
    'Load Layout
    '...
    Dim no As NativeObject = Me
    no.RunMethod("requestIDFA", Null) '<< Error
    Wait For GAD_TrackingAuthorization (Status As Int)

    analytics.Initialize
    analytics.SendEvent("login", CreateMap ("additional parameter": 100))

    IAd.Initialize("iad", vp.ID_INTERSTICIAL)
    IAd.RequestAd
End Sub

I have this error:
B4X:
*** mainpage: B4XPage_Created
requestIDFA
Error occurred on line: 234 (B4XMainPage)
Method not found: requestIDFA, target: [_root=<B4XViewWrapper: <B4IPanelView: 0x103b2b7b0; frame = (0 0; 0 20); layer = <CALayer: 0x28256d700>>>, _xui=<B4IXUI: 0x282745f20>, _drawer=[_meventname=Drawer, _mcallback=[_root=<B4XViewWrapper: <B4IPanelView: 0x103b2b7b0; frame = (0 0; 0 20); layer = <CALayer: 0x28256d700>>>, _xui=<B4IXUI: 0x282745f20>, _drawer=[_meventname=Drawer, _mcallback=[_root=<B4XViewWrapper: <B4IPanelView: 0x103b2b7b0; frame = (0 0; 0 20); layer = <CALayer: 0x28256d700>>>, _xui=<B4IXUI: 0x282745f20>, _drawer=[_meventname=Drawer, _mcallback=[_root=<B4XViewWrapper: <B4IPanelView: 0x103b2b7b0; frame = (0 0; 0 20); layer = <CALayer: 0x28256d700>>>, _xui=<B4IXUI: 0x282745f20>, _drawer=[_meventname=Drawer, _mcallback=[_root=<B4XViewWrapper: <B4IPanelView: 0x103b2b7b0; frame = (0 0; 0 20); layer = <CALayer: 0x28256d700>>>, _xui=<B4IXUI: 0x282745f20>, _drawer=
, _clvmenudrawer=, _lbldrawericono=<B4XViewWrapper: <UILabel: 0x103c411d0; frame = (8 0; 50 40); text = ''; clipsToBounds = YES; userInteractionEnabled = NO; animations = { bounds.origin=<CASpringAnimation: 0x282572e00>; bounds.size=<CASpringAnimation: 0x282572e20>; position=<CASpringAnimation: 0x282572e80>; }; layer = <_UILabelLayer: 0x2806589b0>>>, _lbldrawertexto=<B4XViewWrapper: <UILabel: 0x103c41810; frame = (66 0; 958 40); text = 'Política de Privacidad'; clipsToBounds = YES; userInteractionEnabled = NO; animations = { bounds.origin=<CASpringAnimation: 0x282573100>; bounds.size=<CASpringAnimation: 0x282573120>; position=<CASpringAnimation: 0x282573180>; }; layer = <_UILabelLayer: 0x280658d20>>>
, _mostrarmarcadorcentrado=0, _iad=<B4IAdInterstitial: 0x282560e80>, _app=<B4IApplicationWrapper: (null)>
, _mailc=<B4IMailComposer: (null)>, _mystore=<B4IStore: 0x282745f70>, _analytics=<iFirebaseAnalytics: 0x282745f80>
, _consent=<B4IConsentManager: 0x282561020>, _lblinfo1=<B4ILabelWrapper: (null)>, _lblinfo2=<B4ILabelWrapper: (null)>
...; userInterac (message truncated)...
Stack Trace: (
  CoreFoundation       373EC2DD-3A29-3E74-B85D-BE4EE925167A + 1159484
  libobjc.A.dylib      objc_exception_throw + 56
  CoreFoundation       373EC2DD-3A29-3E74-B85D-BE4EE925167A + 117344
  MyApp             +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 368
  MyApp             -[B4INativeObject RunMethod::] + 216
  MyApp             -[ResumableSub_b4xmainpage_B4XPage_Created resume::] + 2812
  MyApp             -[b4i_b4xmainpage _b4xpage_created::] + 548
  CoreFoundation       373EC2DD-3A29-3E74-B85D-BE4EE925167A + 1178464
  CoreFoundation       373EC2DD-3A29-3E74-B85D-BE4EE925167A + 5600
  MyApp             +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1608
MyApp             -[B4ICommon CallSubDebug4::::] + 1080
MyApp             -[B4ICommon CallSubDebug2::::] + 372
MyApp             -[b4i_b4xpagesmanager _createpageifneeded::] + 1152
MyApp             -[b4i_b4xpagesmanager _showpage::] + 828
MyApp             -[b4i_b4xpagesmanager _addpage:::] + 1428
MyApp             -[b4i_b4xpagesmanager _addpageandcreate:::] + 640
MyApp             -[b4i_b4xpagesmanager _initialize:::] + 1892
MyApp             -[b4i_main _application_start:] + 744
CoreFoundation       373EC2DD-3A29-3E74-B85D-BE4EE925167A + 1178464
CoreFoundation       373EC2DD-3A29-3E74-B85D-BE4EE925167A + 5600
MyApp             +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1608
MyApp             -[B4IShell runMethod:] + 448
MyApp             -[B4IShell raiseEventImpl:method:args::] + 2172
MyApp             -[B4IShellBI raiseEvent:event:params:] + 1580
MyApp             __33-[B4I raiseUIEvent:event:params:]_block_invoke + 60
libdispatch.dylib    16C9F613-7AE3-32CE-BA3A-B0DCF0464F0E + 393904
libdispatch.dylib    16C9F613-7AE3-32CE-BA3A-B0DCF0464F0E + 397976
libdispatch.dylib    16C9F613-7AE3-32CE-BA3A-B0DCF0464F0E + 64740
CoreFoundation       373EC2DD-3A29-3E74-B85D-BE4EE925167A + 631152
CoreFoundation       373EC2DD-3A29-3E74-B85D-BE4EE925167A + 607696
CoreFoundation       CFRunLoopRunSpecific + 572
GraphicsServices     GSEventRunModal + 160
UIKitCore            7E4F912A-868A-3669-96D1-6D89F785509F + 11727728
UIKitCore            UIApplicationMain + 164
MyApp             main + 128
libdyld.dylib        19E502BE-AFC1-3E00-AD3F-D28C0AE1287E + 4416
)
I move this code to B4XMainPage before it was in Main:
B4X:
#if OBJC
#import <AppTrackingTransparency/AppTrackingTransparency.h>
#import <AdSupport/AdSupport.h>
- (void)requestIDFA {
    if (@available(iOS 14, *)) {
      [ATTrackingManager requestTrackingAuthorizationWithCompletionHandler:^(ATTrackingManagerAuthorizationStatus status) {
          [self.bi raiseUIEvent:nil event:@"gad_trackingauthorization:" params:@[@(status)]];
      }];
  } else {
          [self.bi raiseUIEvent:nil event:@"gad_trackingauthorization:" params:@[@(3)]];
    }
 
}

#End If
But it appears this error:
B4X:
note: Using new build system
note: Using codesigning identity override: iPhone Distribution: Angel
note: Planning build
note: Constructing build description
warning: Skipping duplicate build file in Copy Bundle Resources build phase: /Users/administrator/Documents/UploadedProjects/<user id>/de.lproj/InfoPlist.strings (in target 'B4iProject' from project 'B4iProject')
warning: Skipping duplicate build file in Copy Bundle Resources build phase: /Users/administrator/Documents/UploadedProjects/<user id>/el.lproj/InfoPlist.strings (in target 'B4iProject' from project 'B4iProject')
warning: Skipping duplicate build file in Copy Bundle Resources build phase: /Users/administrator/Documents/UploadedProjects/<user id>/en.lproj/InfoPlist.strings (in target 'B4iProject' from project 'B4iProject')
warning: Skipping duplicate build file in Copy Bundle Resources build phase: /Users/administrator/Documents/UploadedProjects/<user id>/es.lproj/InfoPlist.strings (in target 'B4iProject' from project 'B4iProject')
warning: Skipping duplicate build file in Copy Bundle Resources build phase: /Users/administrator/Documents/UploadedProjects/<user id>/fr.lproj/InfoPlist.strings (in target 'B4iProject' from project 'B4iProject')
warning: Skipping duplicate build file in Copy Bundle Resources build phase: /Users/administrator/Documents/UploadedProjects/<user id>/it.lproj/InfoPlist.strings (in target 'B4iProject' from project 'B4iProject')
warning: Skipping duplicate build file in Copy Bundle Resources build phase: /Users/administrator/Documents/UploadedProjects/<user id>/nl.lproj/InfoPlist.strings (in target 'B4iProject' from project 'B4iProject')
warning: Skipping duplicate build file in Copy Bundle Resources build phase: /Users/administrator/Documents/UploadedProjects/<user id>/pl.lproj/InfoPlist.strings (in target 'B4iProject' from project 'B4iProject')
warning: Skipping duplicate build file in Copy Bundle Resources build phase: /Users/administrator/Documents/UploadedProjects/<user id>/pt.lproj/InfoPlist.strings (in target 'B4iProject' from project 'B4iProject')
warning: Skipping duplicate build file in Copy Bundle Resources build phase: /Users/administrator/Documents/UploadedProjects/<user id>/ru.lproj/InfoPlist.strings (in target 'B4iProject' from project 'B4iProject')
warning: Skipping duplicate build file in Copy Bundle Resources build phase: /Users/administrator/Documents/UploadedProjects/<user id>/tr.lproj/InfoPlist.strings (in target 'B4iProject' from project 'B4iProject')
warning: MobileCoreServices has been renamed. Use CoreServices instead. (in target 'B4iProject' from project 'B4iProject')
CreateBuildDirectory /Users/administrator/Documents/UploadedProjects/<user id>/build (in target 'B4iProject' from project 'B4iProject')
    cd /Users/administrator/Documents/UploadedProjects/<user id>
    builtin-create-build-directory /Users/administrator/Documents/UploadedProjects/<user id>/build

MkDir /Users/administrator/Documents/UploadedProjects/<user id>/Payload/MyApp.app (in target 'B4iProject' from project 'B4iProject')
    cd /Users/administrator/Documents/UploadedProjects/<user id>
    /bin/mkdir -p /Users/administrator/Documents/UploadedProjects/<user id>/Payload/MyApp.app

ProcessProductPackaging /Users/administrator/Library/MobileDevice/Provisioning\ Profiles/122e65de-bdcf-4706-abf3-19d254e8722a.mobileprovision /Users/administrator/Documents/UploadedProjects/<user id>/Payload/Unifilar.app/embedded.mobileprovision (in target 'B4iProject' from project 'B4iProject')
    cd /Users/administrator/Documents/UploadedProjects/<user id>
    builtin-productPackagingUtility /Users/administrator/Library/MobileDevice/Provisioning\ Profiles/122e65de-bdcf-4706-abf3-19d254e8722a.mobileprovision -o /Users/administrator/Documents/UploadedProjects/<user id>/Payload/Unifilar.app/embedded.mobileprovision

WriteAuxiliaryFile /Users/administrator/Documents/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/DerivedSources/Entitlements.plist (in target 'B4iProject' from project 'B4iProject')
    cd /Users/administrator/Documents/UploadedProjects/<user id>
    write-file /Users/administrator/Documents/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/DerivedSources/Entitlements.plist

ProcessProductPackaging "" /Users/administrator/Documents/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/Unifilar.app.xcent (in target 'B4iProject' from project 'B4iProject')
    cd /Users/administrator/Documents/UploadedProjects/<user id>
 ...
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
The actual error is missing in the second case.

I've just tested it with a B4XPages project with this code:
B4X:
Sub Class_Globals
    Private Root As B4XView
    Private xui As XUI
End Sub

Public Sub Initialize
'    B4XPages.GetManager.LogEvents = True
End Sub

'This event will be called once, before the page becomes visible.
Private Sub B4XPage_Created (Root1 As B4XView)
    Root = Root1
    Root.LoadLayout("MainPage")
End Sub

'You can see the list of page related events in the B4XPagesManager object. The event name is B4XPage.

Private Sub Button1_Click
    

    Dim no As NativeObject = Me
    no.RunMethod("requestIDFA", Null)
    Wait For GAD_TrackingAuthorization (Status As Int)
    Log("asasd")
End Sub

#if OBJC
#import <AppTrackingTransparency/AppTrackingTransparency.h>
#import <AdSupport/AdSupport.h>
- (void)requestIDFA {
    if (@available(iOS 14, *)) {
      [ATTrackingManager requestTrackingAuthorizationWithCompletionHandler:^(ATTrackingManagerAuthorizationStatus status) {
          [self.bi raiseUIEvent:nil event:@"gad_trackingauthorization:" params:@[@(status)]];
      }];
  } else {
          [self.bi raiseUIEvent:nil event:@"gad_trackingauthorization:" params:@[@(3)]];
    }
  
}

#End If

And in Main:
B4X:
#AdditionalLib: AppTrackingTransparency.framework
#PlistExtra: <key>SKAdNetworkItems</key><array><dict><key>SKAdNetworkIdentifier</key><string>cstr6suwn9.skadnetwork</string></dict></array>
#PlistExtra: <key>NSUserTrackingUsageDescription</key>
#PListExtra: <string>This identifier will be used To deliver personalized ads To you.</string>

Works fine.
 
Upvote 0

angel_

Well-Known Member
Licensed User
Longtime User
The error information is quite long

B4X:
...  builtin-productPackagingUtility -entitlements -format xml -o /Users/administrator/Documents/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/Unifilar.app.xcent

WriteAuxiliaryFile /Users/administrator/Documents/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/all-product-headers.yaml (in target 'B4iProject' from project 'B4iProject')
    cd /Users/administrator/Documents/UploadedProjects/<user id>
    write-file /Users/administrator/Documents/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/all-product-headers.yaml

WriteAuxiliaryFile /Users/administrator/Documents/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/MyApp.hmap (in target 'B4iProject' from project 'B4iProject')
    cd /Users/administrator/Documents/UploadedProjects/<user id>
    write-file /Users/administrator/Documents/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/MyApp.hmap

WriteAuxiliaryFile /Users/administrator/Documents/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/MyApp-project-headers.hmap (in target 'B4iProject' from project 'B4iProject')
    cd /Users/administrator/Documents/UploadedProjects/<user id>
    write-file /Users/administrator/Documents/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/MyApp-project-headers.hmap

WriteAuxiliaryFile /Users/administrator/Documents/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/MyApp-own-target-headers.hmap (in target 'B4iProject' from project 'B4iProject')
    cd /Users/administrator/Documents/UploadedProjects/<user id>
    write-file /Users/administrator/Documents/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/MyApp-own-target-headers.hmap

WriteAuxiliaryFile /Users/administrator/Documents/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/MyApp-generated-files.hmap (in target 'B4iProject' from project 'B4iProject')
    cd /Users/administrator/Documents/UploadedProjects/<user id>
    write-file /Users/administrator/Documents/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/MyApp-generated-files.hmap

WriteAuxiliaryFile /Users/administrator/Documents/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/MyApp-all-target-headers.hmap (in target 'B4iProject' from project 'B4iProject')
    cd /Users/administrator/Documents/UploadedProjects/<user id>
    write-file /Users/administrator/Documents/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/MyApp-all-target-headers.hmap

WriteAuxiliaryFile /Users/administrator/Documents/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/MyApp-all-non-framework-target-headers.hmap (in target 'B4iProject' from project 'B4iProject')
    cd /Users/administrator/Documents/UploadedProjects/<user id>
    write-file /Users/administrator/Documents/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/Unifilar-all-non-framework-target-headers.hmap

CompileC /Users/administrator/Documents/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/arm64/LS_simbolos3.o /Users/administrator/Documents/UploadedProjects/<user id>/B4iProject/LS_simbolos3.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'B4iProject' from project 'B4iProject')
    cd /Users/administrator/Documents/UploadedProjects/<user id>
    export LANG\=en_US.US-ASCII
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -target arm64-apple-ios9.0 -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/lj/wrbzzxds6b53f88_rx3x7c800000gn/C/org.llvm.clang/ModuleCache.noindex/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 -Wno-objc-interface-ivars -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 -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DB4I_VERSION\=13 -DNS_BLOCK_ASSERTIONS\=1 -DOBJC_OLD_DISPATCH_PROTOTYPES\=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.3.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -fvisibility\=hidden -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-semicolon-before-method-body -iquote /Users/administrator/Documents/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/Unifilar-generated-files.hmap -I/Users/administrator/Documents/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/Unifilar-own-target-headers.hmap -I/Users/administrator/Documents/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/Unifilar-all-target-headers.hmap -iquote /Users/administrator/Documents/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/Unifilar-project-headers.hmap -I/Users/administrator/Documents/UploadedProjects/<user id>/Payload/include -I/Users/administrator/Documents/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/DerivedSources-normal/arm64 -I/Users/administrator/Documents/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/DerivedSources/arm64 -I/Users/administrator/Documents/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/DerivedSources -F/Users/administrator/Documents/UploadedProjects/<user id>/Payload -F../../Libs -MMD -MT dependencies -MF /Users/administrator/Documents/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/arm64/LS_simbolos3.d --serialize-diagnostics /Users/administrator/Documents/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/arm64/LS_simbolos3.dia -c /Users/administrator/Documents/UploadedProjects/<user id>/B4iProject/LS_simbolos3.m -o /Users/administrator/Documents/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/arm64/LS_simbolos3.o

CompileC /Users/administrator/Documents/UploadedProjects/<user id>/build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/arm64/LS_simbolos1.o /Users/administrator/Documents/UploadedProjects/<user id>/B4iProject/LS_simbolos1.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'B4iProject' from project 'B4iProject')
    cd /Users/administrator/Documents/UploadedProjects/<user id>
    export LANG\=en_US.US-ASCII...

On the other hand, If I delete the last line (#PListExtra: <string>This identifier will be used To deliver personalized ads To you.</string>), I have this error

B4X:
Error: security: SecKeychainDelete: The specified keychain could not be found.

Out: Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -configuration Release PRODUCT_NAME=MyApp CONFIGURATION_BUILD_DIR=/Users/administrator/Documents/UploadedProjects/<user id>/Payload "CODE_SIGN_IDENTITY=iPhone Distribution: Angel" "OTHER_CODE_SIGN_FLAGS=--keychain <user id>" PROVISIONING_PROFILE=122e65de-bdcf-4706-abf3-19d254e8722a -arch arm64

Build settings from command line:
    ARCHS = arm64
    CODE_SIGN_IDENTITY = iPhone Distribution: Angel
    CONFIGURATION_BUILD_DIR = /Users/administrator/Documents/UploadedProjects/<user id>/Payload
    OTHER_CODE_SIGN_FLAGS = --keychain <user id>
    PRODUCT_NAME = MyApp
    PROVISIONING_PROFILE = 122e65de-bdcf-4706-abf3-19d254e8722a

note: Using new build system
note: Using codesigning identity override: iPhone Distribution: Angel
note: Planning build
note: Constructing build description
error: Bundle identifier is missing. B4iProject doesn't have a bundle identifier. Add a value for PRODUCT_BUNDLE_IDENTIFIER in the build settings editor. (in target 'B4iProject' from project 'B4iProject')
warning: Skipping duplicate build file in Copy Bundle Resources build phase: /Users/administrator/Documents/UploadedProjects/<user id>/de.lproj/InfoPlist.strings (in target 'B4iProject' from project 'B4iProject')
warning: Skipping duplicate build file in Copy Bundle Resources build phase: /Users/administrator/Documents/UploadedProjects/<user id>/el.lproj/InfoPlist.strings (in target 'B4iProject' from project 'B4iProject')
warning: Skipping duplicate build file in Copy Bundle Resources build phase: /Users/administrator/Documents/UploadedProjects/<user id>/en.lproj/InfoPlist.strings (in target 'B4iProject' from project 'B4iProject')
warning: Skipping duplicate build file in Copy Bundle Resources build phase: /Users/administrator/Documents/UploadedProjects/<user id>/es.lproj/InfoPlist.strings (in target 'B4iProject' from project 'B4iProject')
warning: Skipping duplicate build file in Copy Bundle Resources build phase: /Users/administrator/Documents/UploadedProjects/<user id>/fr.lproj/InfoPlist.strings (in target 'B4iProject' from project 'B4iProject')
warning: Skipping duplicate build file in Copy Bundle Resources build phase: /Users/administrator/Documents/UploadedProjects/<user id>/it.lproj/InfoPlist.strings (in target 'B4iProject' from project 'B4iProject')
warning: Skipping duplicate build file in Copy Bundle Resources build phase: /Users/administrator/Documents/UploadedProjects/<user id>/nl.lproj/InfoPlist.strings (in target 'B4iProject' from project 'B4iProject')
warning: Skipping duplicate build file in Copy Bundle Resources build phase: /Users/administrator/Documents/UploadedProjects/<user id>/pl.lproj/InfoPlist.strings (in target 'B4iProject' from project 'B4iProject')
warning: Skipping duplicate build file in Copy Bundle Resources build phase: /Users/administrator/Documents/UploadedProjects/<user id>/pt.lproj/InfoPlist.strings (in target 'B4iProject' from project 'B4iProject')
warning: Skipping duplicate build file in Copy Bundle Resources build phase: /Users/administrator/Documents/UploadedProjects/<user id>/ru.lproj/InfoPlist.strings (in target 'B4iProject' from project 'B4iProject')
warning: Skipping duplicate build file in Copy Bundle Resources build phase: /Users/administrator/Documents/UploadedProjects/<user id>/tr.lproj/InfoPlist.strings (in target 'B4iProject' from project 'B4iProject')
warning: MobileCoreServices has been renamed. Use CoreServices instead. (in target 'B4iProject' from project 'B4iProject')


Error: ** BUILD FAILED **
 
Last edited:
Upvote 0
Top