iOS Question Open custom file and read content

DonManfred

Expert
Licensed User
Longtime User
Upvote 1

Nickelgrass

Active Member
Licensed User
Longtime User
Hi, is there no way to open a custom file type on iOS ? That would be a death sentence for my project.
 
Upvote 0

Nickelgrass

Active Member
Licensed User
Longtime User
So I got it to work with csv files. Now I am trying to define the custom file type with ending PCD. It threw me a compiler error:

error message:
B4i Version: 8.00
Parsing code.    (0.03s)
Building folders structure.    (0.01s)
Compiling code.    (0.10s)
Compiling layouts code.    (0.01s)
Compiling debugger engine code.    (0.54s)
Building Xcode project.    (0.07s)
Preparing project for builder.    (0.06s)
    Project size: 0.83 MB
Sending data to remote compiler.    Error
Out: Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -configuration Release PRODUCT_NAME=******** CONFIGURATION_BUILD_DIR=/Users/administrator/Documents/UploadedProjects/<user id>/Payload "CODE_SIGN_IDENTITY=iPhone Distribution: ********" "OTHER_CODE_SIGN_FLAGS=--keychain <user id>" PROVISIONING_PROFILE=******** -arch arm64

User defaults from command line:
    IDEPackageSupportUseBuiltinSCM = YES

Build settings from command line:
    ARCHS = arm64
    CODE_SIGN_IDENTITY = iPhone Distribution: ********
    CONFIGURATION_BUILD_DIR = /Users/administrator/Documents/UploadedProjects/<user id>/Payload
    OTHER_CODE_SIGN_FLAGS = --keychain <user id>
    PRODUCT_NAME = ********
    PROVISIONING_PROFILE = ********

note: Using codesigning identity override: iPhone Distribution: ********
Computing target dependency graph and provisioning inputs

Create build description
Build description signature: ********
Build description path: /Users/administrator/Documents/UploadedProjects/<user id>/build/XCBuildData/********-desc.xcbuild

warning: Building targets in manual order is deprecated - check "Parallelize build for command-line builds" in the project editor, or set DISABLE_MANUAL_TARGET_ORDER_BUILD_WARNING in any of the targets in the current build to suppress this warning
/Users/administrator/Documents/UploadedProjects/<user id>/B4iProject.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to 16.2.99. (in target 'B4iProject' from project 'B4iProject')
/Users/administrator/Documents/UploadedProjects/<user id>/B4iProject.xcodeproj: 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')

Error: ** BUILD FAILED **

Please note that I tried to anonymize all the information.


pslist:
 #PlistExtra:<key>UTExportedTypeDeclarations</key>
    #PlistExtra:   <Array>
    #PlistExtra:       <dict>
    #PlistExtra:           <key>UTTypeIdentifier</key>
    #PlistExtra:           <string>Public.custom_type</string>
    #PlistExtra:           <key>UTTypeReferenceURL</key>
    #PlistExtra:           <string>https://www.something.de</string>
    #PlistExtra:           <key>UTTypeDescription</key>
    #PlistExtra:           <string>Something</string>
    #PlistExtra:           <key>UTTypeIconFile</key>
    #PlistExtra:           <string>Public.something</string>
    #PlistExtra:           <key>UTTypeConformsTo</key>
    #PlistExtra:           <Array>
    #PlistExtra:               <string>Public.profile</string>
    #PlistExtra:           </Array>
    #PlistExtra:           <key>UTTypeTagSpecification</key>
    #PlistExtra:           <dict>
    #PlistExtra:               <key>com.apple.ostype</key>
    #PlistExtra:               <string>PCD</string>
    #PlistExtra:               <key>Public.filename-extension</key>
    #PlistExtra:               <Array>
    #PlistExtra:                   <string>PCD</string>
    #PlistExtra:               </Array>
    #PlistExtra:               <key>Public.mime-Type</key>
    #PlistExtra:               <string>text/plain</string>
    #PlistExtra:           </dict>
    #PlistExtra:       </dict>
    #PlistExtra:   </Array>

There seems to be something missing PRODUCT_BUNDLE_IDENTIFIER . What do I have to add?
 
Upvote 0
Top