xcode8.2

“dyld`__abort_with_payload” error on iPhone 5s device

房东的猫 提交于 2020-04-29 07:01:49
问题 I'm trying to run my app on device (iphone 5s) and I got this error when the device tries to run my app. Then it only shows white screen. What's wrong with my device? My code works fine when I use simulator. Any help would be appreciated! 回答1: I tried everything whatever I can do. Finally I solved it by disabling "Enable guard Malloc" from diagnostics. Now I can able to run the app on device. 回答2: project cleaning helped me out 回答3: I solved it! I did everything mentioned by Faisal Sabri in

“dyld`__abort_with_payload” error on iPhone 5s device

非 Y 不嫁゛ 提交于 2020-04-29 06:57:41
问题 I'm trying to run my app on device (iphone 5s) and I got this error when the device tries to run my app. Then it only shows white screen. What's wrong with my device? My code works fine when I use simulator. Any help would be appreciated! 回答1: I tried everything whatever I can do. Finally I solved it by disabling "Enable guard Malloc" from diagnostics. Now I can able to run the app on device. 回答2: project cleaning helped me out 回答3: I solved it! I did everything mentioned by Faisal Sabri in

Unable to insert UIScrollView above UIView to another scene using XCode 8

大兔子大兔子 提交于 2019-12-22 08:28:47
问题 I have an existing iPad app (Portrait mode) where I am trying to add Landscape mode in XCode. I have been able to do it on the first simple view, seen below by changing the class in XCode to UIScrollView and the UIView fell into line below it (I believe the UIView was added by XCode, but not sure tho'). The scrollview works perfectly when in landscape mode. When I try to do the same thing to the next scene, it won't allow me to change the order again, as seen in the following image; I'm not

Unable to submit archive including Here Maps Premium SDK with Xcode 8.2.1

[亡魂溺海] 提交于 2019-12-20 00:59:15
问题 archive upload failure messages screenhot Xcode was failing to submit a project including dynamic library "NMAKit.framework" required for Here Map Premium for iOS functionality. (uploading the sample project included in Here Maps Premium SDK for iOS to avoid side effects caused by my project leading also to upload failure) Bitcode was disabled in project's build settings. I'am using the latest Xcode Version 8.2.1. I don't have trouble submitting the app without NMAKit.framework. It seems like

How to create virtual printer with iOS Simulator?

北城余情 提交于 2019-12-12 14:34:06
问题 In one of my application there is feature to print documents. I want to test this feature but I don’t have device, So I have to test on Simulator. With simulator how can I print documents. Do I need to connect physical printer or can I create virtual printer and test with it ? I am using Xcode 8.2.1 , iOS 10 and StarPrint iOS SDK 5.2.1 I have searched lot but I didn’t find which work for me. How can I do that ? I have referred below links : Where is printer simulator in Xcode 6 Here I cannot

iOS:Setting UICollectionView cell to view size

情到浓时终转凉″ 提交于 2019-12-12 05:20:00
问题 I'm trying to figure out how to setup the frame of the UICollectionView cell to the frame of the view (similar of how photo app) but I need to do it programmatically. Any of you knows how can I do this? I'll really appreciate your help. 回答1: You can use the sizeForItemAt indexPath method on UICollectionViewDelegateFlowLayout . This will determine the size of each cell, and can be configured to be relative to the size of other elements (like your view , for example). func collectionView(_

SlideOutMenu remove Navigation Bar

主宰稳场 提交于 2019-12-12 03:56:12
问题 I use SWRevealViewController for my project. Currently, the problem is that when the project starts, Navigation bar show with title of "MyApp". But, navigation bar disappears when I click on Home If I add a Navigation Bar in view controller, there will be 2 navigation bars at first run. One navigation will automatically disappear when I click on Home link. How to do to get the first image appearance when I click on Home link? I'm using Swift 3 . 回答1: You could try set the navigation bar to

Read local JSON file in XCUITest

橙三吉。 提交于 2019-12-11 07:29:28
问题 I am writing UI tests for iOS application. I want to read data from a local json file. I am using the following code to get the path for my json file: func testExample() { readJSON() } func readJSON(){ let bundle = Bundle(for:myTestClass.self) if let path = bundle.url(forResource: "myurl", withExtension: "json"){ print("Got the path") print(path) } else{ print("Invalid filename/path") } I have tried using the solution for the following stackoverflow question : Reading in a JSON File Using

ios 10 app crashes when accessing camera

浪子不回头ぞ 提交于 2019-12-10 21:23:24
问题 I am new to ios. I am building an app which requires camera access, and according to new requirements I have already added following camera permission in info.plist but still I am getting following exception. I have also tried cleaning and reinstalling app on my phone. Does any one know how to fix this. info.plit This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSCameraUsageDescription key with a