I am writing this little tool to query and update sqlite databases.
the database files that we need to query are not located in the sandbox but are external files.
when I sandbox the app it can access the .db file not not wal or the shm files preventing me from updating the database.
Now after the docs on sandboxing it mentions something about related files.
but it also says
Note: In the case of a SQLite journal file, beginning in 10.8.2, journal files, write-ahead logging files, and shared memory files are automatically added to the related items list if you open a SQLite database, so this step is unnecessary.
i also added this to my plist file
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>db</string>
<string>sqlite</string>
</array>
<key>CFBundleTypeName</key>
<string>SQLite Database</string>
<key>CFBundleTypeOSTypes</key>
<array>
<string>****</string>
</array>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>*</string>
</array>
<key>CFBundleTypeName</key>
<string>Other Document Type</string>
<key>CFBundleTypeOSTypes</key>
<array>
<string>****</string>
</array>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>db-shm</string>
<string>db-wal</string>
</array>
<key>CFBundleTypeName</key>
<string>Support Type</string>
<key>CFBundleTypeOSTypes</key>
<array>
<string>****</string>
</array>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>NSIsRelatedItemType</key>
<true/>
</dict>
</array>
dose anyone have any idea how I fix this issue
Related
After the last update, without any change in code, my app will no longer appear in the "open in" menu. Has something changed in managing file types? My file is now associated with google drive and other generic apps!
Thank you for any help...
My code:
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeIconFiles</key>
<array/>
<key>CFBundleTypeName</key>
<string>Pin The World 2 File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSHandlerRank</key>
<string>Owner</string>
<key>LSItemContentTypes</key>
<array>
<string>com.valgy.PintheWorld2</string>
</array>
</dict>
</array>
<key>UTExportedTypeDeclarations</key>
<array>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.data</string>
</array>
<key>UTTypeDescription</key>
<string>Pin The World 2 File</string>
<key>UTTypeIdentifier</key>
<string>com.valgy.PintheWorld2</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<string>p2w</string>
<key>public.mime-type</key>
<string>application/PintheWorld2</string>
</dict>
</dict>
</array>
I have an error when attempting to upload my ipa using the application loader. I am using visual studio 2017 on the latest xamarin build 4.5
I am using a LaunchScreen.storyboard. I also have the the iPhone 5 images in the asset catalog.
Anyone else having problems or could offer a solution?
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleIdentifier</key>
<string>com.ExampleApp.ExampleOfApp</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIDeviceFamily</key>
<array>
<integer>1</integer>
<integer>2</integer>
</array>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
<key>CFBundleIconFiles</key>
<array/>
<key>UIPrerenderedIcon</key>
<true/>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen.storyboard</string>
<key>NSCameraUsageDescription</key>
<string>This app needs access to the camera to take photos.</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>This app needs access to photos.</string>
<key>NSMicrophoneUsageDescription</key>
<string>This app needs access to microphone.</string>
<key>CFBundleDisplayName</key>
<string>Example App</string>
<key>XSAppIconAssets</key>
<string>Resources/Media.xcassets/AppIcons.appiconset</string>
<key>CFBundleShortVersion</key>
<string>1</string>
<key>UIRequiresFullScreen</key>
<true/>
<key>MinimumOSVersion</key>
<string>10.3</string>
<key>UILaunchImages</key>
<array>
<dict>
<key>UILaunchImageMinimumOSVersion</key>
<string>7.0</string>
<key>UILaunchImageName</key>
<string>Default-568h.png</string>
<key>UILaunchImageOrientation</key>
<string>Portrait</string>
<key>UILaunchImageSize</key>
<string>{320, 568}</string>
</dict>
</array>
<key>XSLaunchImageAssets</key>
<string>Resources/Media.xcassets/LaunchImages.launchimage</string>
</dict>
</plist>
This problem has been solved on xamarin forums
Here is the link below to the answer on the forums
https://forums.xamarin.com/discussion/95617/your-binary-is-not-optimized-for-iphone-5
Must say this error is driving me nuts and I am at my wits end. I would like to say that I've read through tons of articles on how to fix this error, I've implemented the solutions given, and this error is still here.
Here is some information on what I am using
Facebook iOS sdk v4.7.1
Parse iOS sdk 1.9.1
Xcode Version 7.1.1
Swift 2.1
I have seen all sorts of solutions regarding the plist, i have updated my plist many times over with, to my knowledge, the proper credentials. Here is my entire plist:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.9.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>fb1679166828968529</string>
</array>
</dict>
</array>
<key>CFBundleVersion</key>
<string>1.9.1</string>
<key>FacebookAppID</key>
<string>1679166828968529</string>
<key>FacebookDisplayName</key>
<string>Student Kitchen</string>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>fbapi</string>
<string>fb-messenger-api</string>
<string>fbauth2</string>
<string>fbshareextension</string>
</array>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSExceptionDomains</key>
<dict>
<key>akamaihd.net</key>
<dict>
<key>NSExceptionRequiresForwardSecrecy</key>
<false/>
<key>NSIncludesSubdomains</key>
<true/>
</dict>
<key>facebook.com</key>
<dict>
<key>NSExceptionRequiresForwardSecrecy</key>
<false/>
<key>NSIncludesSubdomains</key>
<true/>
</dict>
<key>fbcdn.net</key>
<dict>
<key>NSExceptionRequiresForwardSecrecy</key>
<false/>
<key>NSIncludesSubdomains</key>
<true/>
</dict>
</dict>
</dict>
<key>UIMainStoryboardFile</key>
<string>Main</string>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
</dict>
</plist>
I have the proper skds for both Facebook and Parse imported into my project. In both my AppDelegate.swift file and the Viewcontroller.swift file i have imported the following at the top.
import UIKit
import Parse
import ParseFacebookUtilsV4
import FBSDKCoreKit
import FBSDKLoginKit
I have turned bitcode off. I have done everything i've read and this error still persists. Any help would be greatly appreciated.
I also would like to note that i am aware Facebook says this is an error that can be ignored. However this does not apply in my case. I am trying to launch the Facebook login screen to log into my app with, and the simulator starts up and goes to a white screen immediately, it does not switch to the Facebook login because of this error which is why i can't ignore it. I also can not try to run the app on my phone as it is an iPhone 4 and is running iOS 7 and i am trying to ensure this works for iOS 9. Also downgrading versions in either Facebook or parse sdks is not an option.
I have also reset the content and settings of the simulator multiple times.
Thank you in advance to whoever can help, i have seen many people with the same error but no proper solution, and I am sure they will all be grateful as will I.
I'm trying to set the document type (the Kind field in the Finder get info field), but it still lists the placeholder DocumentType even with this:
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>dotpaint</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>docIcon.png</string>
<key>CFBundleTypeName</key>
<string>dotpaint Document</string>
<key>CFBundleTypeOSTypes</key>
Am I doing anything wrong?
Have you tried exporting your custom UTI type in the .plist file? Take a look at UTExportedTypeDeclarations in Apple's docs. Should be something like this:
<key>UTExportedTypeDeclarations</key>
<array>
<dict>
<key>UTTypeDescription</key>
<string>My file type</string>
<key>UTTypeConformsTo</key>
<array>
<string>public.data</string> // ... or whatever you want it to conform to
</array>
<key>UTTypeIdentifier</key>
<string>com.mycompany.myapp</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>dotpaint</string>
</array>
</dict>
</dict>
</array>
I have the following Info.plist which I am attempting to associate .mybin files with the applcation. However after installing the .mybin files do not have the icon, the description or the association (when viewing with Get Info). I'm completely new to OSX development and I inherited the packaging of the application so I have no idea how to debug problems. The app is packaged to a .app using productbuild if that makes any difference.
I have compared my info.plist against several other applications and the only difference I can see is many include deprecated keys such as CFBundleTypeExtensions. Since I only need to support 10.6 and greater I don't believe I need this and LSItemContentTypes should be enough. From what I understand the 'com.me.myapp.mybin' of LSItemContentTypes is the link to the exported UTI of the same name.
I have tried manually associating the .mybin file with the application, but that fails when I double-click saying the app does not handle that type of file.
Can anyone tell we what is wrong with this info.plist or what to do investigate?
Thanks.
<plist version="1.0">
<dict>
<key>CFBundleIconFile</key>
<string>MyApp.icns</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleGetInfoString</key>
<string>My Application version 1.0, Copyright © 2013.</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleExecutable</key>
<string>My Application</string>
<key>CFBundleName</key>
<string>My Application</string>
<key>LSMinimumSystemVersion</key>
<string>10.6</string>
<key>CFBundleIdentifier</key>
<string>com.me.myapp</string>
<key>CFBundleDisplayName</key>
<string>My Application</string>
<key>CFBundleVersion</key>
<string>1.0.0</string>
<key>CFBundleShortVersionString</key>
<string>1.0.0</string>
<key>LSMultipleInstancesProhibited</key>
<true/>
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeIconFile</key>
<string>MyApp</string>
<key>CFBundleTypeName</key>
<string>My Application binary</string>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>LSItemContentTypes</key>
<array>
<string>com.me.myapp.mybin</string>
</array>
<key>LSHandlerRank</key>
<string>Owner</string>
</dict>
</array>
<key>UTExportedTypeDeclarations</key>
<array>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.data</string>
</array>
<key>UTTypeDescription</key>
<string>My Application binary</string>
<key>UTTypeIconFile</key>
<string>MyApp.icns</string>
<key>UTTypeIdentifier</key>
<string>com.me.myapp.mybin</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<string>mybin</string>
<key>public.mime-type</key>
<string>application/vnd.me-app.binary</string>
</dict>
</dict>
</array>
</dict>
</plist>
You could investigate using the lsregister command:
alias lsregister='/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister'
lsregister -lint -f /path/to/your.app
(I'm using Lion. On a different version of the Mac OS, it's possible that the path to lsregister is different.)