app-bundle

iOS - Copy sqlite to bundle for CoreData

孤者浪人 提交于 2019-12-08 03:36:26
Here's what I've done: Created the sqlite file with a populated version of the app. Copied that file into my app bundle, making sure that the target is set and that it is present in "Copy Bundle Resources" I then try to populate Core Data like this: - (NSPersistentStoreCoordinator *)persistentStoreCoordinator { if (_persistentStoreCoordinator != nil) { return _persistentStoreCoordinator; } NSURL *storeURL = [[self applicationDocumentsDirectory] URLByAppendingPathComponent:@"TestModel.sqlite"]; if( ![[NSFileManager defaultManager] fileExistsAtPath:[storeURL path]] ) { // If there’s no Data

iPhone: move resources to Application bundle

人走茶凉 提交于 2019-12-06 12:48:14
问题 My application just got rejected from Apple because I store my resources under Documents folder! The Documents folder gets synched to iCloude automatically so only user generated data should be stored under Documents. All application data should go under Application bundle. I use following method through out my project - (NSString *)filePath:(NSString *)fileName { NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory =

AppBundle throws “LSOpenURLsWithRole() failed with error -10810” after compiling with java 7 or 8

空扰寡人 提交于 2019-12-01 16:49:27
I upgraded jdk to version 7_45. After compiling and executing the jar, which works fine, i packed it into an application bundle. But unfortunately i get this error message "LSOpenURLsWithRole() failed with error -10810 for the file /Users/.../MyApp.app". The same problem with the jdk 8 Early Access. I also. tried different setting in the info.plist for the "JVMVersion" key Since the jar itself works fine, i could do a workaround by replacing the JavaApplicationStub with my own executable which simply would call "java -jar ./.../MyApp.jar". But not really sure if that is a proper way to fix

Code sign Java app for OS X Gatekeeper

醉酒当歌 提交于 2019-12-01 05:47:05
I am trying to distribute a Java application to OS X users. I am not using the Mac store - it is to be distributed through my own website. Whatever I try, OS X's Gatekeeper rejects the app. Here's my method: (1) Build the app as usual, get a JAR file (2) Use appbundler as described here: https://docs.oracle.com/javase/7/docs/technotes/guides/jweb/packagingAppsForMac.html . This creates a .app around my JAR which runs nicely, and contains the JVM in the MyApp.app/Contents/PlugIns directory. (3) Sign the app with my Developer certificate: codesign -s 'Developer ID Application: MyCompany Ltd' -

Code sign Java app for OS X Gatekeeper

笑着哭i 提交于 2019-12-01 02:49:47
问题 I am trying to distribute a Java application to OS X users. I am not using the Mac store - it is to be distributed through my own website. Whatever I try, OS X's Gatekeeper rejects the app. Here's my method: (1) Build the app as usual, get a JAR file (2) Use appbundler as described here: https://docs.oracle.com/javase/7/docs/technotes/guides/jweb/packagingAppsForMac.html. This creates a .app around my JAR which runs nicely, and contains the JVM in the MyApp.app/Contents/PlugIns directory. (3)