创建存档/ .pkg时可执行文件的奇怪错误,其中PDF内容为Apple主机 [英] Strange error of executable while creating archive/.pkg with PDF content to Host at Apple

查看:119
本文介绍了创建存档/ .pkg时可执行文件的奇怪错误,其中PDF内容为Apple主机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为我的应用程序启用了In App Purchase并集成了这些类。购买的类型是非消费品,我将Apple的主机内容标记为YES。当我想要与Apple托管内容时,我需要提供托管内容套餐。

I have enabled In App Purchase for my an application and integrated the classes. The type of purchase is Non-Consumable and I mark Host Content with Apple to YES. When I want to host content with Apple I need to provide Hosted Content Package.

以下是我创建包裹的步骤(.pkg)

文件 - >新建 - >项目... - >其他(iOS) - >应用内购买内容。新项目已创建。

File -> New -> Project... -> Other (iOS) -> In-App Purchase Content. New project gets created.

将数据放入此项目,使用.plist文件进行必要的更改,然后选择:产品 - >存档。

Put data to this project , making necessary change with .plist file and choose: Product -> Archive.

完成此步骤后,我在验证时收到错误消息:

有人可以提供帮助我有这个错误。一旦我能够用Test3&创建包。测试4.但是在创建除演示之外的orignal包时,它每次都会抛出此错误。我真的很担心这个错误。非常感谢任何帮助。

Can somebody help me with this error. Once I was able to create the package with Test3 & Test 4. But at the time of creating orignal package other than demo, it just throws this error every time.I am really stucked with this error.Any help is really appreciated.

以下是参考文献: 配置和创建适用于iOS 6应用程序内购买的App Store托管内容

推荐答案

打开终端,输入'cd'然后拖动将包含文件的文件夹放入终端窗口并按Enter键,然后使用命令 ls -l yourfile.extension chmod -x yourfile.extension

Open Terminal, type 'cd ' then drag the folder containing your files into the Terminal window and hit enter, then use the commands ls -l yourfile.extension and chmod -x yourfile.extension

将yourfile.extension替换为您的实际文件名

replace yourfile.extension with actual file name of yours

实际发生的是默认情况下,mac osx包含可执行文件位。
通过Chmod,您将删除ios托管应用内容所需的内容。

What is actually happening is that mac osx includes executables bit by default. By Chmod you are removing it which is required for ios hosted app content.

这篇关于创建存档/ .pkg时可执行文件的奇怪错误,其中PDF内容为Apple主机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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