ios-simulator

How to update a pre-populated Core Data (SQLITE3) DB in appstore

寵の児 提交于 2019-12-13 05:27:58
问题 I have an application that is finished except for the problem i am trying to fix in this question. I have been asking about this before but i guess asked the wrong question so i give it a new go. I do apologize that i have started this tread: refresh SQLITE3 (Core Data) on device and app store and ask again but i am desperate. Again, i am not asking about writing into the database but refresh the whole, pre-populated, database at build time. Here is the sequence: I run the application in the

Different simulator device ID between Jenkins and terminal

泄露秘密 提交于 2019-12-13 04:40:08
问题 I use this statement xcrun simctl list to get device ID list, but it returns different list between Jenkins and terminal, so I can't start simulator via Jenkins. And this's picture from terminal 回答1: I assume Jenkins is either running as a different user or on a different machine. Those identifiers are UDIDs (Universal Device IDs) which are UUIDs (Universally Unique Identifiers). They are globally unique for every user on every system. simctl and xcodebuild accept device names so feel free to

Why can't I get this SQLite code to load the proper data for my detail view?

点点圈 提交于 2019-12-13 04:18:00
问题 - (void) hydrateDetailViewData { //if detail view is hydrated then do not get it from database if(isDetailViewHydrated) return; if(detailStmt == nil) { const char *sql = "select snapTitle, snapDesc from Snap where snapID =?"; if(sqlite3_prepare_v2(database, sql, -1, &detailStmt, NULL) != SQLITE_OK) NSAssert1(0, @"Error while creating detail view statement. '%s'", sqlite3_errmsg(database)); NSLog(@"SQLite= %d", sqlite3_step(detailStmt)); } if (sqlite3_step(detailStmt) == SQLITE_ROW)//execute

“Missing retina 4-inch launch image” error, but I I have that image

我的梦境 提交于 2019-12-13 03:59:08
问题 The following error appears when I run my iOS app on Xcode 5. I have added an image for the retina 4-inch iOS6 version through the asset catalog and the app runs without problem on my iPhone 5 and in the simulator. So why am I getting this error message and how can I get rid of it? 回答1: Add the default image in project bundle to get ride of this issue(By default the image will be created). 回答2: if you are working on iPhone5 app then you have to use Default-568@2x.png because of retina display

Cannot connect to any HTTPS url on iOS 11 simulator

早过忘川 提交于 2019-12-13 03:58:15
问题 Going to https://google.com results in the screen below. This is an iOS 11.0.1 simulator, and I'm using Xcode 9.0.1 I've tried multiple HTTPS urls, and none have worked. I've tried these fixes, to no avail: Restart the simulator Hardware > Erase All Content and Settings The date/time of the simulator is correct. 回答1: After trying an iOS 8.4 simulator, I noticed the simulator had no internet connection. With a quick Google search, I found that Avast antivirus has a "Web Shield" feature that is

iOS App Crashes when running by itself on device, does not crash when running through Xcode using debugger, or in simulator

岁酱吖の 提交于 2019-12-13 03:58:15
问题 I'm having an issue with my app that runs fine while running when I run using Xcode or the simulator. Stepping through the debugger isn't any help. I've looked at the crash logs and I can't figure out what the issue is (frankly I don't know how to read them unless one of my objects is explicitly listed). There's not much specific to my application, most of the objects listed are lower level items. Running it via Instruments looking for leaks doesn't turn up anything. It seems to be clean. I

reading with CGPDFDocumentRef and saving PDF

淺唱寂寞╮ 提交于 2019-12-13 03:55:49
问题 i am reading PDF files using CGPDFDocumentRef but now i want to save that PDF file in my iPhone , how to do it, what to use ? if any example is giving it will be highly appreciated. Thanks :) 回答1: Check out the way Apple does it in their Quartz 2D Programming Guide (specifically Listing 13-4). 来源: https://stackoverflow.com/questions/6729911/reading-with-cgpdfdocumentref-and-saving-pdf

download a .mp3 file on Website with NSSURLConnection

吃可爱长大的小学妹 提交于 2019-12-13 03:49:18
问题 I want to download a .mp3 file on a Website with NSSURLConnection , however only the first 357 bytes of the 2.5 mb file are downloaded. I tried to increase the buffer size and the timeout of the request, but I still can't get the entire .mp3 file on the iPhone. This URL of the file is: http://dl.mp3.kapsule.info/fsfsdfdsfdserwrwq3/fc90613208cc3f16ae6d6ba05d21880c/4b5244f0/b/7e/b7e80afa18d06fdd3dd9f9fa44b51fc0.mp3?filename=Every-Day-I-Love-You.mp3 How can I make the iPhone download the whole

How can i center the content on a view controller so that it is always centered no matter what device size is used in xamarin storyboard?

半世苍凉 提交于 2019-12-13 03:37:33
问题 Im developing an app in xamarin and I am having trouble getting the Launch Screen to work properly for when i boot up the app. I am using storyboard for the launch screen. The view is set at generic and the width and height are set to any. However when I start the app the launch screen cuts off the majority of my picture and labels that i have centered in the generic view on the view controller. Does anyone know what i can do so that no matter what device I use (iPhone 5s, 6, 6plus, etc.),

can't install iOS 4.3 Simulator in Xcode 4.3

早过忘川 提交于 2019-12-13 03:37:07
问题 I'm new in iPhone, I installed Xcode 4.3 and now I'm trying to install the iOS 4.3 Simulator from Downloads, it shows the installation progress then give me the following message: You can't Save the file "Developer" because the volume "Xcode" is out of Space. Consider that I was installed old version of Xcode. Any Help? Thanks in Advance. 回答1: It seems that you haven't installed Xcode and that you're running it from the dmg file. You need to find the dmg from where you are running Xcode -