问题:

注意:我正在开发使用Xamarin。 类似的问题发布在Xamarin论坛这里

我正在创建一个名为CompanyApp的应用程序。 然后我为com.Company.CompanyApp创建了一个App ID,以及使用相应App ID的Distribution Provisioning Profile。 我上传了二进制文件,它工作得很好。

然后我继续创建应用程序的演示版本(基本上是相同的应用程序,只需要很少的修改,因此它是相同的解决方案和项目,只是不同的捆绑签名设置), CompanyAppDemo带有新的App ID com.Company.CompanyAppDemo ,以及新的分发配置文件,它使用新的App ID。 我更新了iOS Bundle Signing选项以使用新的Provisioning Profile并生成了IPA。 但是当我将其上传到Application Loader时,我收到以下错误:

[2015-01-23 16:08:21 SGT]错误:错误ITMS-90164:“无效的代码签名权利。您的应用程序包签名中的权利与供应配置文件中包含的权利不匹配。根据配置配置文件,捆绑包含一个不允许的密钥值:’TEAMID.com.Company.CompanyApp’,用于’Payload / CompanyApp.app / CompanyApp’中的密钥’application-identifier’

[2015-01-23 16:08:21 SGT]错误:错误ITMS-90046:“无效的代码签名权利。您的应用程序包的签名包含iOS不支持的代码签名权利。具体来说,价值’TEAMID.com.Company .CompanyApp’不支持’Payload / CompanyApp.app / CompanyApp’中的密钥’application-identifier’。该值应该是以TEAMID开头的字符串,后跟一个点’。’,后跟包标识符。“

我已经调试了好几天才弄明白无济于事。

我想知道为什么当我使用新配置文件签名时,Application Loader抛出的错误引用了原始TEAMID.com.Company.CompanyApp的ID而不是TEAMID.com.Company.CompanyAppDemo ? 这是Xamarin中的一个错误,它找错了配置文件或者我错过了什么? 对于不同的应用程序,您不需要不同的证书吗?

请注意,在更改Xamarin中的iOS Build Signing选项之前,我始终在XCode> Preference中刷新了Provisioning Profile列表。

Note: I’m developing using Xamarin.Similar question posted in Xamarin Forum hereI’m creating an app called, say CompanyApp .Then I created an App ID for it com.Company.CompanyApp , along with Distribution Provisioning Profile that uses the corresponding App ID.I uploaded the binary and it worked perfectly fine.Then I went on create a demo version of the app (basically the same app with small modification, so it’s the same solution & project, just different bundle signing setting), CompanyAppDemo with a new App ID com.Company.CompanyAppDemo , along with a new Distribution Provisioning Profile that uses the new App ID.I updated the iOS Bundle Signing options to use the new Provisioning Profile and generated the IPA.But when I uploaded this to Application Loader, I got the following error:[2015-01-23 16:08:21 SGT] ERROR: ERROR ITMS-90164: “Invalid Code Signing Entitlements. The entitlements in your app bundle signature do not match the ones that are contained in the provisioning profile. According to the provisioning profile, the bundle contains a key value that is not allowed: ‘TEAMID.com.Company.CompanyApp’ for the key ‘application-identifier’ in ‘Payload/CompanyApp.app/CompanyApp'”[2015-01-23 16:08:21 SGT] ERROR: ERROR ITMS-90046: “Invalid Code Signing Entitlements. Your application bundle’s signature contains code signing entitlements that are not supported on iOS. Specifically, value ‘TEAMID.com.Company.CompanyApp’ for key ‘application-identifier’ in ‘Payload/CompanyApp.app/CompanyApp’ is not supported. This value should be a string starting with your TEAMID, followed by a dot ‘.’, followed by the bundle identifier.”I have been debugging for days to figure out to no avail.I am wondering why when I signed with the new profile, the error that Application Loader threw refer to the ID of the original TEAMID.com.Company.CompanyApp instead of TEAMID.com.Company.CompanyAppDemo ?Is this a bug in Xamarin that pick up a wrong provisioning profile or am I missing something?You don’t need different certificate for different app right?Note that I have always refreshed the Provisioning Profile list in XCode > Preference before changing the iOS Build Signing option in Xamarin.

问题:

我安装了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?

问题:

第一次启动该应用程序时,一切似乎运行良好。 我将按一下“停止”按钮,做一些工作,当我再次启动它时,它似乎崩溃了,甚至无法加载任何东西。 按停止,再次单击运行,它可以正常工作。 直到我重复该过程。

这是xcode使用“线程1:信号SIGABRT”突出显示错误的地方。 显然这里没有用。

int main(int argc, char *argv[])
{
    @autoreleasepool {
        return UIApplicationMain(argc, argv, nil, NSStringFromClass([PokerAppDelegate class]));
    }
}

调试控制台除了(lldb)之外什么都没有显示(因此,我想它停止了,目前还没有崩溃)。因此,当我执行BT这就是我得到的:

(lldb) bt
* thread #1: tid = 0x1c03, 0x9a258a6a libsystem_kernel.dylib`__pthread_kill + 10, stop reason = signal SIGABRT
    frame #0: 0x9a258a6a libsystem_kernel.dylib`__pthread_kill + 10
    frame #1: 0x99ea1b2f libsystem_c.dylib`pthread_kill + 101
    frame #2: 0x04a7057b libsystem_sim_c.dylib`abort + 140
    frame #3: 0x01dc0b4e GraphicsServices`GSRegisterPurpleNamedPort + 348
    frame #4: 0x01dc069f GraphicsServices`_GSEventInitialize + 123
    frame #5: 0x01dc0c1f GraphicsServices`GSEventInitialize + 36
    frame #6: 0x000163f9 UIKit`UIApplicationMain + 600
    frame #7: 0x00001d0d Guitar Chord Poker HD`main(argc=1, argv=0xbffff32c) + 141 at main.m:16
    frame #8: 0x00001c35 Guitar Chord Poker HD`start + 53
(lldb) 

到目前为止,这是我所做的:

  • 执行“清洁”
  • 我已经重置了模拟器并重置了计算机
  • 我已经注释掉了视图控制器中的所有代码,仍然崩溃
  • 我已注释掉应用程序委托中的所有代码,仍然崩溃
  • 但是…。我已经在Xcode以外的设备上运行了该应用程序,并且看起来运行得很好。
  • (编辑)我已经从各种缓存文件夹中删除/重新安装了xcode和所有内容(模拟器,文档)(这会使xcode在新下载后不再自动重新安装旧代码)。 虽然仍然找不到命令行工具的存放位置。 仍然崩溃。

尽管如此,应用程序仍然每秒或其他启动崩溃。

事情是直到最近的Xcode更新,我才没有问题。 可能是Xcode错误吗?

(编辑)我也正在运行最新的OSX开发人员版本。 会干扰吗?

First time I launch the app, everything seems to run fine.I’ll hit the stop button, do some work and when I go to launch it again, it seems to crash before it can even load anything.Press stop, hit Run again, and it works fine.Until I repeat the process.This is where xcode is highlighting the error with “Thread 1:signal SIGABRT”.Obviously nothing useful here.The debug console shows nothing besides (lldb) (So I suppose its stopping, not crashing at this point) So, when I perform a BT this is what I get:Here’s what I have done so far:Performed a ‘Clean’I’ve reset the simulators and reset my computerI’ve commented out all the code in the view controller, still crashesI’ve commented out all the code in the app delegate, still crashesBUT….I’ve run the app on a device outside of Xcode, and it seems to work perfectly fine.(EDIT) I’ve deleted/reinstalled xcode, and all content(Simulators, Docs) from the various cache folders (This stops xcode from automatically reinstalling the old ones after a new download).Still can’t find where command line tools is kept though.Still crashes.Despite all this, apps still crash every second/other launch.Thing is I had no issues until the most recent Xcode update.Could it be an Xcode bug?(EDIT) I am also running the latest developer releases of OSX.Could that be interfering?

问题:

当我将它上传到我的实际设备(iphone和iPad)时,我遇到了在iOS和Xcode上测试我的应用程序的问题,我想知道是否有人知道这个问题并且可以帮助我:

通常,当我在我的设备上构建我的应用程序时,应用程序将在我的设备上安装并启动。 但是当我准备提交我的第一个应用程序时,我正在测试并更改Bundle Identifier,App ID和Development Provisions(因此问题可能与它有关),现在,当我尝试构建我的应用程序时我的设备,虽然它在我的设备上安装得很好,Xcode将不再启动应用程序。 相反,我收到此错误消息:

启动可执行文件时出错。 启动远程程序时出错:没有此类文件或目录。

有谁知道这是什么问题? 这个派生数据文件夹是关于什么的?

非常感谢!

I ran into problem with testing my app on iOS and Xcode when I am uploading it to my actual devices (iphone and iPad), and I’m wondering if someone knows the issue and can help me out:Normally when I build my app on my devices, the app is installed and launched on my devices.But as I am preparing for submitting my first app I was testing around and changing the Bundle Identifier, App ID, and Development Provisions (so the issue may have something to do with it), and now, when I try to build my app on my devices, although it’s installed on my devices fine, Xcode will not launch the app anymore.Instead, I got this error message:Error Starting Executable.Error launching remote program: No such file or directory.Does anyone know what the issue is?And What is this derived data folder about?Much thanks!