问题:

我安装了Xcode 6 GM种子,我正在尝试首次创建一个IPA文件。 存档成功后,当我单击“导出”按钮时,会出现一个窗口,显示:

无法找到或生成匹配的签名资产

Xcode试图找到或生成匹配的签名资产,但由于以下问题而未能这样做。

  • 您的帐户已拥有有效的iOS分发证书。

    如果您在其他Mac上拥有签名身份,则可以导入开发人员配置文件。 您也可以撤销当前证书并再次申请。

这是错误的屏幕截图:

在此输入图像描述

谁能告诉我怎么解决这个问题?

I installed the Xcode 6 GM seed, and I’m trying to create an IPA file for the first time.After archive success, when I click on the Export button, a window appears saying:Failed to locate or generate matching signing assetsXcode attempted to locate or generate matching signing assets and failed to do so because of the following issues.Your account already has a valid iOS Distribution certificate.If you have your signing identity on another Mac, you can import a developer profile.You can also revoke the current certificate and request one again.Here’s a screenshot of the error:Can anybody tell me how to solve this?

问题:

切入追逐我已经重新创建了我的问题,因为它是相当自我解释的。

这符合,没有错误:

switch (n) {
    case 1:
        NSLog(@"");
        NSString *aStr;
        break;
    default:
        break;
    }

这编译错误 ,它只缺少NSLog():

switch (n) {
    case 1:
        NSString *aStr;
        break;
    default:
        break;
    }

它在编译时出现错误“NSString’之前的预期表达式

我在这里错过了什么吗?

Cut to the chase I have recreated my problem as it is fairly self explanatory.this complies without error:this compiles with error and it’s only missing the NSLog():it throws an error at compile ” Expected expression before ‘NSString’ “Am I missing something here?

问题:

我在Objective-C中编写应用程序,我收到此错误:

MyApp(2121,0xb0185000)malloc:***对象0x1068310错误:双重免费
***在malloc_error_break中设置断点以进行调试

当我发布一个NSAutoreleasePool并且我无法弄清楚我要发布两次的对象时,就会发生这种情况。

我该如何设置他的断点?

有没有办法知道这个“对象0x1068310”是什么?

I’m programming an application in Objective-C and I’m getting this error:MyApp(2121,0xb0185000) malloc: *** error for object 0x1068310: double free*** set a breakpoint in malloc_error_break to debugIt is happening when I release an NSAutoreleasePool and I can’t figure out what object I’m releasing twice.How do I set his breakpoint?Is there a way to know what is this “object 0x1068310”?

问题:

我已经在Apple引用的示例代码中看到了如何处理Core Data错误。 即:

NSError *error = nil;
if (![context save:&error]) {
/*
 Replace this implementation with code to handle the error appropriately.

 abort() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development. If it is not possible to recover from the error, display an alert panel that instructs the user to quit the application by pressing the Home button.
 */
    NSLog(@"Unresolved error %@, %@", error, [error userInfo]);
    abort();
}

但从来没有的,你应该如何实现它的任何实例。

有没有人(或可以指向我的方向)一些实际的“生产”代码,说明上述方法。

先谢谢,马特

I’ve seen in the example code supplied by Apple references to how you should handle Core Data errors.Ie:But never any examples of how you should implement it.Does anyone have (or can point me in the direction of) some actual “production” code that illustrates the above method.Thanks in advance, Matt

问题:

我刚刚更新到Xcode版本4.6.2(4H10003)并尝试在模拟器中运行以前工作的应用程序项目并收到以下错误并且构建失败。

从不同的分支((clang-425.0.27))构建的PCH文件比编译器((clang-425.0.28))

出了什么问题,如何解决?

I just updated to Xcode version 4.6.2 (4H10003) and tried to run a previously working application project in the simulator and received the following error and the build failed.PCH file built from a different branch ((clang-425.0.27)) than the compiler ((clang-425.0.28))What went wrong and how can it be fixed?