iOS Question [Solved] Error to build simulator app

angel_

Well-Known Member
Licensed User
Longtime User
I'm trying to build simulator app but I get this error:

B4X:
B4i Version: 7.00
Parsing code.    (0.32s)
Building folders structure.    (0.11s)
Running custom action.    (0.05s)
Running custom action.    (2.39s)
Compiling code.    (1.32s)
Compiling layouts code.    (0.06s)
Building Xcode project.    (0.40s)
Preparing project for builder.    (0.78s)
    Project size: 6.16 MB
Sending data to remote compiler.    Error
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_SIGNING_REQUIRED=NO -sdk iphonesimulator -arch x86_64

Build settings from command line:
    ARCHS = x86_64
    CODE_SIGNING_REQUIRED = NO
    CONFIGURATION_BUILD_DIR = /Users/administrator/Documents/UploadedProjects/<user id>/Payload
    PRODUCT_NAME = MyApp
    SDKROOT = iphonesimulator14.3

note: Using new build system
note: Planning build
note: Constructing build description
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.3.99. (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: Building for iOS Simulator, but the linked framework 'KSCrash.framework' was built for iOS. (in target 'B4iProject' from project 'B4iProject')

Error: ** BUILD FAILED **

Any idea?
 

angel_

Well-Known Member
Licensed User
Longtime User
It worked but I had to comment out the line, with #if Not(SIMULATOR) it didn't work
 
Upvote 0
Top