xcode7

Unable to run the Simulator The operation couldn’t be completed. (LaunchServicesError error 0.)

只愿长相守 提交于 2019-12-31 03:33:54
问题 Im trying to run the IOS9 iphone 6 app in Xcode 7 and swift 2.0, but I can't. If I reset the content and Simulator settings, the first time works but the second one fails again, I have cleaned up the app, I have cleaned the build folder, I have tried setting the NSAllowsArbitraryLoads key to yes, Sorry, but I have a headache searching what's going on. Appreciate help the error in the coresimulator.log is 07/10/15 21:51:02,800 com.apple.CoreSimulator.CoreSimulatorService[410]: Error Domain

Modify PRODUCT_BUNDLE_IDENTIFIER in project.pbxproj of Xcode

狂风中的少年 提交于 2019-12-31 01:15:15
问题 I'm trying to modify the project.pbxproj file of Xcode project using sed shell command on Mac Terminal to replace a string. I want to replace the field - PRODUCT_BUNDLE_IDENTIFIER = com.example.71b9b4f2 to PRODUCT_BUNDLE_IDENTIFIER = com.example.14a32d1e Command used - sed -i 's/com.example.71b94f2/com.example.14a32d1e/g' project.pbxproj which produces the following output error- sed: 1: "project.pbxproj": extra characters at the end of p command I was earlier using Plistbuddy shell command

Remove launch screen, Xcode 7

試著忘記壹切 提交于 2019-12-30 17:41:10
问题 I can find a bunch of answers from pre-2014 about removing the launch/splash screen by removing the line "Launch screen interface file base name", but in this project on Xcode 7, there is no such line in my info tab. Is there any way to remove the launch/splash screen in another way in Xcode 7? This is in Objective-C by the way. 回答1: Contrary to an answer I received, you CAN disable the splash/launch screen. To do so: click on your project go to General scroll down to App Icons and Launch

App installation failed: Unknown Error Xcode 7

别来无恙 提交于 2019-12-30 10:25:28
问题 My app runs fine in the simulator, but when I try to install it on my iPhone it says App installation failed: An unknown error has occurred. I opened my device logs and got this: Nov 12 21:17:19 Isaacs-iPhone streaming_zip_conduit[5853] : LaunchServices: installing app for existing placeholder Raritea.FSS-App <(null) Not found in database > Nov 12 21:17:19 Isaacs-iPhone streaming_zip_conduit[5853] : LaunchServices: Not creating progress for Raritea.FSS-App <(null) Not found in database >

Localization in Swift 2

China☆狼群 提交于 2019-12-30 08:14:38
问题 I want to localize my application; I am using Swift 2. I followed this tutorial but I experience 2 issues. 1. Localized image disappears for both languages I localized multiple images the same way for German and English . One set of images (the en and de versions of an image) disappear for both languages. I added them, they are in the project's folder and I can not spot any difference to other images I localized. I tried cleaning and running the project ( no errors ) removed the images and

Localization in Swift 2

霸气de小男生 提交于 2019-12-30 08:14:09
问题 I want to localize my application; I am using Swift 2. I followed this tutorial but I experience 2 issues. 1. Localized image disappears for both languages I localized multiple images the same way for German and English . One set of images (the en and de versions of an image) disappear for both languages. I added them, they are in the project's folder and I can not spot any difference to other images I localized. I tried cleaning and running the project ( no errors ) removed the images and

How to convert CLLocation to string in Xcode

不想你离开。 提交于 2019-12-30 07:33:08
问题 I use SwiftLocation for get coordinates: try! SwiftLocation.shared.currentLocation(Accuracy.House, timeout: 20, onSuccess: { (location) -> Void in print(location?.description) }) { (error) -> Void in print("something went wrong") } In location?.description I get it: <+37.78583400,-122.40641700> +/- 5.00m (speed -1.00 mps / course -1.00) @ 2/22/16, 6:35:55 PM Indochina Time And I need to take just coordinates. So I make loop for it: while name.characters.last != ">" { // delete all after ">"

Swift: Nil is incompatible with return type String

删除回忆录丶 提交于 2019-12-30 06:36:14
问题 I have this code in Swift: guard let user = username else{ return nil } But I'm getting the following errors: Nil is incompatible with return type String Any of you knows why or how I return nil in this case? I'll really appreciate your help 回答1: you have to tell the compiler that you want to return nil. How do you that? by assigning '?' after your object. For instance take a look at this code: func newFriend(friendDictionary: [String : String]) -> Friend? { guard let name = friendDictionary[

xCode 7 error: include of non-modular header inside framework module with Google Maps

坚强是说给别人听的谎言 提交于 2019-12-30 05:47:06
问题 I updated to xCode 7.1 today and tried to build my app but I'm getting this error: I have already tried going to Build Settings under "Target" and set "Allow Non-modular Includes in Framework Modules" to YES but that didn't solve this issue. UPDATE: Since this was preventing me from compiling and hindering my progress in terms of development, I recommend you download an older version of xCode from Apple (https://developer.apple.com/downloads/ make sure to login). You can download version 7.0

After installing Xcode 7 I can't build and run projects anymore as document fails to open

百般思念 提交于 2019-12-30 04:58:05
问题 EDIT: This question refers to teh pre-release version of Xcode 7, hence it may not be relevant if you are running the currently released version as some issues may have been fixed. I get the following: Failed to connect with the iOS agent. Please file a bug report at bugreport.apple.com. Why is that? If I look at the details I get: ================================= ERROR: Failed to find or create execution context for description System content 1x for IBCocoaTouchFramework-EightAndLater w/