xcode5

CocoaPods arm64 issue

孤街浪徒 提交于 2019-11-28 15:27:56
问题 When using Podfile for developing iOS 7 app with Xcode5, we always got this issue. After some searching, seems like no final resolve from CocoaPods ? Maybe resolved at this moment when you see this. How to resolve such issues right now ? The issue was: Pods was rejected as an implicit dependency for 'libPods.a' because its architectures 'armv7 armv7s' didn't contain all required architectures 'armv7 armv7s arm64' 回答1: Select the Pods project Change Build Active Architecture Only from Yes to

Connecting IBOutlets to UITableViewCell prototype

核能气质少年 提交于 2019-11-28 13:55:41
I am creating a UITable with custom UITableViewCell prototype. My cell contains UIImageViews, UILabels and UIButtons. When I control and drag from my buttons to my class' interface it works just fine. However, it does not work with outlets. When I create the IBOutlet in the .h file, I can only connect if I select the UITable not the cell and of course the result is a broken app. Do you guys have any idea how to solve this? I do not want to use a custom class just for the cell. I really would like to stick with Storyboard and prototypes. Thanks in advance Using Labels with tag will get the job

How to “developer reject” an app in iTunesConnect after the Sep 2014 changes

送分小仙女□ 提交于 2019-11-28 12:35:11
I uploaded a binary but before submitting it for review I realized that the Product Name in the Build Settings wasn't correct. I fixed the issue and tried to upload the binary again, but ran into the version 1.x already exists issue while doing that. So I thought I'd just submit this, manually reject it and upload the fixed one. But with the latest changes in iTunesConnect, like a lot of other stuff, the option to reject my binary seems to be tactfully hidden or completely missing. How do I reject my binary in the latest (Sep 14) iTunesConnect dashboard? Or what's the new process to make such

Xcode 5 crashes with SVN version 1.7 - self signed certificate

非 Y 不嫁゛ 提交于 2019-11-28 10:41:27
问题 I've updated to XCode 5 today (using the Mac AppStore) and ever since it keeps crashing whenever I open my previous projects (that are working copies of repos located in my local SVN). The error report contains infos (IDESourceControlCredentialsValidator) that indicate that XCode has some issues with my SVN: Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Application Specific Information: ProductBuildVersion: 5A1413 ASSERTION FAILURE in /SourceCache

Xcode 5 equivalent of NS_BLOCK_ASSERTIONS in Build Settings

北城以北 提交于 2019-11-28 09:59:45
Until Xcode 5, Release builds could be prevented from including NSAssert statements and their variants, using the default Build Setting: OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1"; This setting can be found in project.pbxproj and is set in Xcode here: (Note that this grab was taken from an Xcode 4 project converted to Xcode 5.) Each target would inherit this setting in the Release build only. Obviously this was a good thing. Rather than crash immediately, the app would possibly struggle on regardless. Whereas for Debug builds, you want to know immediately when an NSAssert fails. However, I am

View disassembly in XCode 4 (or Xcode 5 or Xcode 6)

会有一股神秘感。 提交于 2019-11-28 09:40:38
I'm having trouble finding much in the way of information about the new XCode layout. How can I view the disassembly of my source file, rather than just the C++ code? OldPeculier In Xcode 4.2 (and Xcode 5), you can see the assembly or disassembly for a file by: Showing the assistant editor (command+option+Enter is the default shortcut). In the JumpBar, select the tuxedo icon and select "Assembly" or "Disassembly" from the drop-down list. You can view the Assembly for a file whether or not you're running the application. Disassembly is only available when the application is running and being

Unknown register name “q0” in asm (arm64)

风流意气都作罢 提交于 2019-11-28 09:24:41
问题 I'm currently trying to compile my lib for the new arm64 arch. I have a bunch of NEON assembly and for all of them I receive an error Unknown register name "q0" in asm. Even if I write smth simple as this: asm ( "" : : : "q0", "q1", "q2", "q3" ); I thought arm64 supports NEON. Am i missing something ? 回答1: “v0”: scanon$ cat bar.c int foo(void) { __asm__("":::"q0"); return 0; } scanon$ xcrun -sdk iphoneos clang bar.c -arch arm64 -c bar.c:2:16: error: unknown register name 'q0' in asm __asm__("

XCode5 simulator: unknown option character `X' in: -Xlinker

此生再无相见时 提交于 2019-11-28 09:21:34
I am currently blocked by a linker error which happens ONLY on XCode5 (XCode4 compiles fine) and ONLY on the simulator (normal devices compile fine). When I try to compile, I get a "Apple Mach-O Librarian Error" which gives me the following wall of text: Libtool build/DevOnly-iphonesimulator/libCozi\ Common\ Code.a normal i386 cd /Users/jr/ios/app/iCozi setenv IPHONEOS_DEPLOYMENT_TARGET 4.3 setenv PATH "/Applications/XCode5/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/XCode5/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"

Parse JSON response with AFNetworking

家住魔仙堡 提交于 2019-11-28 09:13:05
I've setup a JSON post with AFNetworking in Objective-C and am sending data to a server with the following code: AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager]; NSDictionary *parameters = @{@"name": deviceName, @"model": modelName, @"pin": pin}; manager.requestSerializer = [AFJSONRequestSerializer serializer]; [manager.requestSerializer setValue:@"Content-Type" forHTTPHeaderField:@"application/json"]; [manager POST:@"SENSORED_OUT_URL" parameters:parameters success:^(AFHTTPRequestOperation *operation, id responseObject) { NSLog(@"JSON: %@", responseObject); }

Xcode 5 - “No application records were found” when trying to Validate an Archive

拥有回忆 提交于 2019-11-28 09:07:24
Hi Folks: Just a person (not a company) trying to submit an app, developed with Xcode 5 to the App Store. Developer.apple.com > IOS Dev Center > iTunes Connect > Manager you Apps > Add New Apps > Click here to register new bundle > Click on AppIDs to see what I have previously registered. If I had 10 reputations on Stackoverflow, I'd post a screenshot. (I will if I can). Summary is that iTunes Connect says: Prefix is C58H638D3X ID is EdAndJ.tiltr9999 Identifier = C58H638D3X.EdAndJ.tiltr9999 So I go back to Xcode5 and I change the Bundle ID to: I tried both: C58H638D3X.EdAndJ.tiltr9999, and