xcode6.3

@import causes parse issue: “could not build module”

时光毁灭记忆、已成空白 提交于 2019-12-17 23:15:31
问题 After updating with Xcode 6.3, I found something strange things with my projects. Below codes causes parse issue that says "Could not build module 'AgendaFramework'", the AgendaFramework is my custom embedded framework for ios8: @import MyEmbededFramework; The error marker looks like this: The issues is raised during indexing not building. Whole building can be performed successfully without any error or warning. I can build, archive, run on device, deploy, submit to App Store. However the

How to disable “curses.h” header (a part of "stdio.h in Xcode 6.3 OSX Yosemite) to avoid conflicting function declarations

荒凉一梦 提交于 2019-12-17 21:16:48
问题 I'm trying to build a project in Xcode but I get errors Implicit declaration of function 'clear' is invalid in C99 and Conflicting types for 'clear' . Here's the code: //main.c #include <stdio.h> #include "tree.h" int main(){ clear(); // Implicit declaration of function 'clear' is invalid in C99 return 0; } //tree.c #include <stdio.h> #include "tree.h" void clear(){ ///Conflicting types for 'clear' printf("Command clear.\n"); } //tree.h #include <stdio.h> void clear(); ///Conflicting types

MergeSwiftModule - Building a Swift app in Xcode 6.3 gets stuck in “Merge MyApp.swiftmodule”

徘徊边缘 提交于 2019-12-12 11:24:30
问题 Building an app in Xcode 6.3 gets stuck for several minutes (approx. 10mins) on a step Merge MyApp.swiftmodule : MergeSwiftModule normal x86_64 /Users/.../Library/Developer/Xcode/DerivedData/MyApp-crbdsfrhkvpiynaffvhzzsspiels/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyApp.build/Objects-normal/x86_64/MyApp.swiftmodule this wasn't an issue in previous version of Xcode 6.2 and Swift 1.0. 回答1: Enabling SWIFT_WHOLE_MODULE_OPTIMIZATION for the target seems to fix this issue. Source:

ld: warning: too many personality routines for compact unwind to encode

ぐ巨炮叔叔 提交于 2019-12-12 04:54:51
问题 I just changed the folder structure of the IOS project in Xcode 6.3 and the warning on the image appeared.Solutions already on the internet are appropriate.I have copied the code in one folder and pasted it in another one.Is it some kin 回答1: Similar question here : ld warning: too many personality routines for compact unwind to encode Also you can silent this warning by adding -Wl,-no_compact_unwind in build settings flags. 来源: https://stackoverflow.com/questions/29648843/ld-warning-too-many

Preview and Resizing in Xcode 6.3

扶醉桌前 提交于 2019-12-11 10:58:44
问题 I am using Xcode 6.3 , but I am not able get preview and Resizing button. The resizing button should be present at last in the attached image. There is 4 buttons in this panel before xcode 6.3 I am not able to see the last button of the following image: So how can achieve that 4th button? 回答1: Ok there is no option Preview and Resize in xcode 6.3.... If you want to check constraints then the option is Document outline and for preview .... just check below.. first select show assistant editor.

Loading xib with device modifier broken in Xcode 6.3 iOS 8.3 iPhone 6+

这一生的挚爱 提交于 2019-12-11 02:25:39
问题 2015-04-08 22:15:24.756 WSL[391:43257] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </private/var/mobile/Containers/Bundle/Application/0FA355FC-B3D0-4B73-94F2-7E1D09B8B178/WSL.app> (loaded)' with name 'myXibName'' *** First throw call stack: (0x1853182d8 0x196b440e4 0x185318218 0x18a1783ac 0x189e961b0 0x189ed1e10 0x1001020c4 0x10028db40 0x18a059a68 0x18a04d890 0x189e39268 0x189d55760 0x18969de1c 0x189698884

new in Xcode 6.3/iOS 8.3: using self alloc for convenience constructor causes build error

廉价感情. 提交于 2019-12-10 13:47:29
问题 This code did not change between Xcode 6.2 and 6.3, but the line containing [self alloc] now causes the error: Multiple methods named 'initWithType:' found with mismatched result, parameter type or attributes @implementation AGNetworkDataRequest + (instancetype)networkDataRequestWithType:(AGNetworkDataRequestType)type { AGNetworkDataRequest *r = [[self alloc] initWithType:type];//error here return r; } - (id)initWithType:(AGNetworkDataRequestType)type { //typical init code } //... If I Cmd

Write into Settings bundle in Swift

怎甘沉沦 提交于 2019-12-10 10:55:46
问题 I have created an app with settings bundle in it and the app configuration can be changed. Reading from Settings bundle is done. I am using below code. let defs: NSUserDefaults = NSUserDefaults.standardUserDefaults() defs.synchronize() var settingsBundle: NSString = NSBundle.mainBundle().pathForResource("Settings", ofType: "bundle")! if(settingsBundle.containsString("")){ NSLog("Could not find Settings.bundle"); return; } var settings: NSDictionary = NSDictionary(contentsOfFile:

CFBundleExecutable missing or invalid

一世执手 提交于 2019-12-10 09:59:08
问题 Attempting to run my project in the iOS simulator, I get a launch code error '0'. Checking the console logs in CoreSimulator.log I found the .app executable "has missing or invalid CFBundleExecutable in its Info.plist" . I'm not sure how to deal with this issue. Perhaps making sure the CFBundleExecutable file is named correctly, but what exactly is it supposed to be named? 来源: https://stackoverflow.com/questions/30236300/cfbundleexecutable-missing-or-invalid

How to cast AnyObject? to String in Swift 1.2

冷暖自知 提交于 2019-12-10 00:20:23
问题 Everything good until, I've downloaded the new version of Xcode 6.3 and Swift 1.2. But when I compile my app again, a lots of error came out. I've dealt with most of them but there is a specific error that I couldn't figure it out the solutions The error is "AnyObject? is not convertible to String?" Before updating Xcode this was absolutely fine : let firstName = self.currentUser["firstName"] as? String 回答1: i've figured out the solution let firstName = self.currentUser?["firstName"] as?