尝试临时分发iOS应用时出现OSStatus错误100021 [英] Getting OSStatus error 100021 when trying to ad hoc distribute ios app

查看:162
本文介绍了尝试临时分发iOS应用时出现OSStatus错误100021的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在获取此消息在为Ad Hoc分发部分的Xcode中选择了一个Ad hoc分发证书时,出现可怕而奇怪的错误。有人知道如何解决此错误吗? :-)

Im getting this awful and weird error when having selected an ad hoc distribution certificiate in Xcode in the Distribute for Ad Hoc section. Anyone know how to fix this error? :-)

谢谢!

推荐答案

我只是解决了相同的问题我的项目中出现错误。我将解释此修复程序,我很想知道它是否有帮助。

I just fixed the same error in my project. I'll explain the fix, and I'd love to know if it helps.

我刚刚添加了 YAJL库到我的iOS项目。问题是我遵循的是Mac OS X的说明,而不是iOS。 Mac OS X的说明包括创建复制文件构建阶段,该阶段将YAJL.framework /文件夹复制到.app捆绑软件中。

I had just added the YAJL library to my iOS project. The problem was that I had followed the Mac OS X instructions, rather than the iOS. The Mac OS X instructions include the creation of a Copy Files Build Phase, that copies the YAJL.framework/ folder to the .app bundle.


这是一个巨大的错误。

This is a huge mistake.

现在,框架文件夹在内部看起来如何?看起来像这样:

Now, what does a framework folder look like inside? It looks like this:

看到那些符号链接了吗? (带有弯曲箭头的文件)是罪魁祸首。从.app文件夹中删除所有这些文件,这样我就可以毫无问题地保存.ipa文件。实际上,您完全不需要应用程序捆绑包中的.framework /文件夹。

See those symbolic links? (The files with the curvy arrows) They are the culprits. Delete all of those out of the .app folder, and I was able to save the .ipa file with no trouble at all. Actually, you don't need the .framework/ folder in the app bundle at all. That should be compiled into the binary.

因此,请检查您的.app文件。是否有不需要的怪异文件夹?有没有任何符号链接?

So, check your .app file. Are there any weird folders that don't need to be there? Are there any symbolic links hanging around?

这篇关于尝试临时分发iOS应用时出现OSStatus错误100021的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆