Attach SQLlite database to IPA file - objective-c

I have searched inoformation to how attach local database to the IPA file to be submitted to Apple Store or Test Flight, but I wasn't successful. So I don't know exactly if:
Is it possible to attach the same db file I have created locally
with all the data to IPA file? How can I do it?
If point 1 is not possible, Will I have to develop in the app
delegate class the creation of the database scheme, and the
insertion of the data auxiliary on the first run in the iPhone app?
Thanks.

Any file in the Copy Bundle Resources in the Xcode project build phases screen will be included in your apps bundle, and so also the ipa file, which as I understand it is simply a zipped application bundle possibly containing an adhoc provisioning profile.

Related

Uploading DSYMs files for Fabric Craslytics Automatically

I am trying to upload all DSYMs files while creating .ipa file for Enterprise release not for ITunes release. I am able to upload all my file manually and when I did that it's works fine but still showing missing DSYMs and also when I created new .ipa file again Fabric is not showing crash reports.
can any one help me how to upload DSYMs file automatically for every build and when creating .ipa files. if i have to write script please let me know where do i have to..

xcode uploading issue when build is prepare for itune store

i have an app having no issue when run on iphone simulator but when upload to the itune store it have validate and upload to the app store button disabled as shown in image
Probably it could be related to how you signed the IPA.
Check you provisioning profiles and certificate in your release configuration.
You can export your package as save for iOS app store deployment,
and upload with application loader.
application loadercan be open in XCode -> open developer tool.
The type of your archive Generic Xcode Archiveis incorrect.
To debug :
Try opening it (right Click > Show In finder > Right Click > Show package content...) to see what is in there appart from your app
Look in your project Build Phases what are the Target Dependencies
source: Cannot generate iOS App archive in xcode
source: Application Archiving in Xcode

What should I do so I can upload different files for iOS

I had an app in iOS. Now I create another APP and I want to upload the same program as that other APP.
The problem is, how can Xcode knows that this program already points to the new program?
Bundle ID? App ID?
How to identify in xcode that this is the program for what program?
In other words:
How does xcode knows which app belong to the archive?
Is it by bundle id?
If I uploaded an APP and then create another APP in itunes connect, what should I do to do the itunes connect?
Short Answer is Bundle ID.
When you validate or distribute any app from Xcode to iTune it search for Bundle ID in your account and work according to that.
Your provisioning Profile have information about your Bundle ID and App ID. So set proper Bundle ID and provisioning as you do for previous app upload.

Error uploading to Testflight Unexpected Error parsing IPA

I am trying to upload my app to test flight. When I use the web interface, I get the error
Unexpected error parsing the IPA, TestFlight support has been notified.
And when I try to upload using the desktop app, it tells me that dSYM is not found, lets me go through the whole process, then give the same error at the end.
Built in XCode 4.5 for deployment target 5.0.
I have looked at Error Upload TestFlight : Invalid IPA / dSYM not found and as far as I can see, all my build settings are set to armv7.
Is there anything obvious that I should check/could be missing?
The only 2 external libraries in the project are test flight sdk and flurry.
I've had the same problem when trying to upload .ipa files. The problem is, that .ipa files don't contain the symbolication information anymore.
Try exporting your app as Xcode Archive instead of building the .ipa for distribution (thats one of the options when you choose 'Distribute...' in the Xcode organizer). This archive contains the necessary dSYM files (if not, you have to check your build settings). If you drop this .xcarchive into the TestFlight desktop client, TestFlight will build the .ipa for you and the upload it.
Make sure to use the same Provisioning Profiles for signing the .ipa in the TestFlight client that you have used when building the archive in Xcode!
Or you can just choose to Show the TestFlight Co-pilot in the menu bar (activate in the settings), the it will automatically detect your Archive.

Testing iOS app archive and keeping existing sqlite database already in use during development

following this link
Testing Workflow with Xcode's Archive feature
I am trying to build and test an iOS app archive.
The application, previously built and developed on iOS devices by means of Xcode, has a Core Data DB that has been filled during development and put in iCloud few months ago.
I would like to develop the archive by keeping the existing DB, however as it is stated in the instruction this seems not possible:
3) Delete any builds of the app from your device
and if I am not wrong, deleting the app by device means also delete sqlite file.
I know there's iCloud, but I am not sure the whole sqlite transaction log files are still available.
Do you have any solution or workaround for that ?
It is possible to preserve the data of an app separately from the app itself by using Xcode Organizer.
On the devices tab on the left under your device there are several categories. Among Screenshots and Device Logs there is also Applications. The on the main window you can select your application and below Upload and Download actions for application data are available.
So you can save your data any time and later restore it for testing purposes.