xcode5

Xcode5 Facing strange issue with testing app iOS Simulator failed to install the application

荒凉一梦 提交于 2019-12-10 13:14:58
问题 Hi i facing strange issue with running Xcode5 latest release version Mountain Lion mac with 10.8.5 update. From yesterday i can not run application in simulator. I got the Error Message while running app like. I read some related issue in Stack Overflow and also doing this Following Step for fix this but still facing same issue. I am trying to reset Content and setting simulator Remove all Build from Derive data folder. Restart mac system Many time after doing above two step. From simulator

iPhone 4" screen with xcassets not pulling correct image

爱⌒轻易说出口 提交于 2019-12-10 12:35:40
问题 I am trying to implement using Images.xcassets into a project I am working on. From what I understand I can just put all the different sized images for different devices in there and then call [UIImage imageNamed:@"name_of_image_set"] and it will return the correct image for the device I am working on. It seems to be pulling the correct image for everything except the iPhone 5/5s/5c with the 4" screen. For that screen size it gives me the image for the @2x iPhone with the 3.5" screen. Here is

Possible to hide app icon in iOS?

流过昼夜 提交于 2019-12-10 12:08:29
问题 I am using XCODE 5. I have added app icon image into project. Is there a way to disable or enable app icon? Disable means do not show icon when disabled otherwise must show icon on device/simulator. 回答1: It's not 100% clear to me whether you want to hide the icon dynamically/programmatically, or not. I didn't see that requirement explicitly, so I'm assuming you don't need programmatic control: This can be done, and it does not require jailbreaking. It is, however, something that Apple would

Xcode 5 asset catalog: What is “Default” image set

ぐ巨炮叔叔 提交于 2019-12-10 11:57:58
问题 My asset catalog contains an image set Default : Can I delete this image set? Where does it come from? (I have migrated my artwork from a previous Xcode version into Xcode 5 asset catalog). What kind of image do I need to provide for this placeholder? My app is iPad only and targets iOS 7 only (no previous versions). 回答1: Default.png is your splash image. You can find it in project settings. You have to replace it with your splash image in order to be approved when you upload to appstore. 来源:

Dynamic assigning of value to macro function .pch file and checking condition .pch file

独自空忆成欢 提交于 2019-12-10 11:27:21
问题 .pch as its name shows pre-compiler header, I have defined a macro in the file so that app can decide in the very beginning of the app compilation. What I need is, possible to load any macro by assigning the values dynamically something like NSUserDefaults and checking the condition in .pch file itself. If user disable logs from screen (switch), there should be no logs else... it can print logs, least bother about Debug/Release mode. I have " #define NSLog(FORMAT, ...) TFLog((@"%s [Line %d] "

cannot stub class method with OCMock 2.1+ in Xcode 5.0

懵懂的女人 提交于 2019-12-10 08:11:51
问题 I know that OCMock version 2.1+ supports stubbing class methods out of the box. But for some reason it's not working with me. To make sure I isolated the problem, I simply cloned the example OCMock project (which is clearly marked as version 2.2.1) and simply added this inside testMasterViewControllerDeletesItemsFromTableView: id detailViewMock = [OCMockObject mockForClass:[DetailViewController class]]; [[[detailViewMock stub] andReturn:@"hello"] helloWorld]; in DetailViewController.h I added

Localization strings file not working with xib in Xcode 5

十年热恋 提交于 2019-12-10 05:31:58
问题 I have the following file structure for localization. A.xib ->A.xib (Base) ->A.strings (Spanish) ->A.strings (English) Since it is "Use Base Internationalization". We can expect to have only one xib file and required strings file for the localization. But, soon as i convert this strings file to .xib (where for each language we have .xib file. This was the case before Base Internationalization). Things start working the iOS simulator and device responds to such changes. Note:- I had also tried

How to fix “Xcode quit unexpectedly while using the libclang.dylib plug-in.”?

走远了吗. 提交于 2019-12-10 03:51:06
问题 I have this every time in a short while after I start xCode ( 5.1.1 ). Removed user data, turned off source control (as some posts suggested), no effect, still crashes (while showing Indexing... that never finishes). Even reinstalled xCode, without any effect, still says the same. Did anybody fixed such an xCode? Here's the crashing thread: Thread 7 Crashed:: Dispatch queue: IDEIndex PCH Creation Lock 0 libclang.dylib 0x00000001080c60d9 void llvm::BitstreamWriter::EmitRecordWithAbbrevImpl

Renaming iOS project in xCode 5 [duplicate]

早过忘川 提交于 2019-12-10 03:05:55
问题 This question already has answers here : How to change the name of an iOS app? (35 answers) Closed 6 years ago . I need to rename an iOS project. Is there a way to do this without starting a whole new project? All other info I found were related to Xcode 4 or old and those methods seem to crash the project - I created a snapshot before I tried any name changing. 回答1: For changing schema name First go to - >Manage Schema then edit schemana name Finally , its changed 回答2: Select the project

When a function missing the return value, the compiler generates a warning but not an error?

隐身守侯 提交于 2019-12-10 03:01:02
问题 Here is a c++ function: int FuncWithoutReturn() { int var = 10; ++var; // No return value here !!! } In MSVC, compiler generates error: error C4716: 'FuncWithoutReturn' : must return a value. But in XCode 5, the compiler just spits a warning: Control reaches end of non-void function In runtime if I am lucky, the app crashes. I know it is a stupid error but it would be good that the compiler yields an error in first place. Just wondering anyone knows WHY XCode think it is a warning instead of