xcode5

Modifying Info.plist's CFBundleVersion in Xcode 5 with Asset Library enabled

流过昼夜 提交于 2019-11-30 14:43:36
问题 With Xcode 5's new Asset Library, adding images and organizing them has never been easier. However, it seems as if it has broken some scripts I use for creating builds. I have a script within my Run Script Phase that sets the CFBundleVersion to be the current timestamp within the plist. In the script, I execute this statement: /usr/libexec/PlistBuddy -c "Set :CFBundleVersion $timestamp" $BUILT_PRODUCTS_DIR/$INFOPLIST_PATH However, when this gets executed, the following statement displays: Set

How to match precompiled static library's debugging symbols to source code with Xcode 5?

╄→гoц情女王★ 提交于 2019-11-30 14:09:48
I have to compile FFmpeg for iOS using an external build script , but when I am debugging I see assembler if I delve too deep into libavformat library functions: 0x109a73: cmpl $0, 1192(%ebp) 0x109a7a: jns 0x109a86 ; mov_write_header + 198 at movenc.c:3539 0x109a7c: movl $1, 1192(%ebp) 0x109a86: movl 16(%ebp), %eax 0x109a89: cmpl $0, 84(%eax) 0x109a8d: movl %edx, %ecx 0x109a8f: jne 0x109ad9 ; mov_write_header + 281 at movenc.c:3548 0x109a91: testb $2, 48(%ecx) 0x109a95: jne 0x109ac1 ; mov_write_header + 257 at movenc.c:3541 There are clear debugging symbols left behind which would lead me to

The document “XXXX.xib” could not be opened. Could not read archive

北战南征 提交于 2019-11-30 13:11:58
问题 After opening my project in the Xcode5 developer preview, errors appeared against a few .xib files when I tried to open the project in Xcode 4.5. The error text was: The document "XXXX.xib" could not be opened. Could not read archive. Please use a newer version of Xcode. Consider changing the document's Development Target to preserve compatibility. The project's development target in Xcode5 appears to be iOS 5.0. Looking at the source code of the .xib files with errors, it is clear that the

How to 'Build & Run' on multiple destinations at once in Xcode?

♀尐吖头ヾ 提交于 2019-11-30 12:00:22
问题 How can one run a project on multiple destinations (say, iPhone, iPad and iSimulator) at once ? There are 2 related questions: Xcode 4 - One Click Build to Multiple Devices? Run on simulator and phone with one click The 1ˢᵗ question (supposedly) has an answer, but I can't figure out how exactly should you use the Aggregate target (if this is the right direction at all), and apparently neither could Josh Kahane, the OP; the "answer" still somehow got/remained accepted. The 2ⁿᵈ question was

Can't Open Project in Xcode 4.6 After Opening in 5.0

非 Y 不嫁゛ 提交于 2019-11-30 11:47:29
I opened the wrong version of my project in Xcode 5 and now Xcode 4.6 crashes when trying to open that project. I only changed one xib file in Xcode 5 and using Xcode 5 have opened the xib in IB and under Interface Builder Document, changed Opens in from Xcode 5.0 to Xcode 4.6. Any ideas why 4.6 crashes when opening the project? EDIT: I made a copy of the project folder and now, even though all of the files are in the old project folder, none of them show in xcode 4.6 or 5 when I open the project. None of my images, class files, or anything are showing in xcode even though they are all still

Xcode: How to set CA_DEBUG_TRANSACTIONS=1?

安稳与你 提交于 2019-11-30 11:39:55
I'm getting this warning in the log window of the debugger: CoreAnimation: warning, deleted thread with uncommitted CATransaction; set CA_DEBUG_TRANSACTIONS=1 in environment to log backtraces. I have to find out what code of mine is calling CATransaction so I can make sure it is running on the main thread. My code doesn't call CATransaction directly. I.e. a search of my code for CATransaction turns up nothing. In Xcode 5, what is the correct way to set CA_DEBUG_TRANSACTIONS=1 in the environment? Thanks in advance to all for any info. gilm Product -> Scheme -> Edit Scheme Select "Run" entry and

Modifying Info.plist's CFBundleVersion in Xcode 5 with Asset Library enabled

ⅰ亾dé卋堺 提交于 2019-11-30 11:36:13
With Xcode 5's new Asset Library, adding images and organizing them has never been easier. However, it seems as if it has broken some scripts I use for creating builds. I have a script within my Run Script Phase that sets the CFBundleVersion to be the current timestamp within the plist. In the script, I execute this statement: /usr/libexec/PlistBuddy -c "Set :CFBundleVersion $timestamp" $BUILT_PRODUCTS_DIR/$INFOPLIST_PATH However, when this gets executed, the following statement displays: Set: Entry, ":CFBundleVersion", Does Not Exist File Doesn't Exist, Will Create: /Users/SpacePyro/Library

Xcode 5 throws “Library not loaded” error when adding a test target

与世无争的帅哥 提交于 2019-11-30 10:50:34
I've tried adding a test target on Xcode 5 using the Add Target -> Add Cocoa Touch Unit Testing Bundle. However, when I run the test, I get the following error: 2013-09-24 10:43:14.446 Stack Exchange[48895:c07] Error loading /Users/arielitovsky/Library/Developer/Xcode/DerivedData/MyApp-fjegcztcnwxqdfdimhonqzzqpdwr/Build/Products/Debug-iphonesimulator/Stack Exchange Tests.xctest/Stack Exchange Tests: dlopen(/Users/arielitovsky/Library/Developer/Xcode/DerivedData/MyApp-fjegcztcnwxqdfdimhonqzzqpdwr/Build/Products/Debug-iphonesimulator/Stack Exchange Tests.xctest/Stack Exchange Tests, 262):

Xcode error : Distill failed for unknown reasons

余生长醉 提交于 2019-11-30 10:44:15
Does anybody know why this error happens on Xcode5? Answer I had this problem when I accidentally renamed a .psd as a .png. Converting the image to an actual png instead of a Photoshop file fixed it for me. Balram Tiwari You might have migrated from a normal project to use an image.catalog. So you can definitely try to copy the bundle resource like launch images. It is so because migrating to an asset catalog for icons and launch images apparently doesn't always add itself to the target automatically. You can find more on this here & here . I hope that helps. I found that my png was a psd file

Can you install the Xcode 5 Developer Preview in parallel with Xcode 4.6.2?

我是研究僧i 提交于 2019-11-30 10:28:32
问题 This question was migrated from Ask Different because it can be answered on Stack Overflow. Migrated 6 years ago . Apple announced the Xcode 5 Developer Preview today and I want to try it. But before I download this, I want to know that what happen with my current version of Xcode (version 4.6.2)? Will the Xcode 5 Developer Preview install as a different application or it will remove the old version? Will some common tools collide, like the command line tools? 回答1: The Xcode 5 developer