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

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

问题描述

我为我的应用程序启用了应用内购买并集成了这些类.购买类型为 Non-Consumable 并且我将 Host Content with 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) 的步骤:

Here are the steps I am following to create the 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.

在这一步之后,我在验证时收到错误:

After this step, I am getting the error at the time of validation:

一旦我能够使用 Test3 & 创建包测试4,但是在创建demo以外的原始包时,每次都抛出这个错误.

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.

这是参考网址:配置和创建 iOS 托管内容6 次应用内购买

推荐答案

打开终端,输入cd",然后将包含文件的文件夹拖入终端窗口并按回车键,然后使用命令 ls -l yourfile.extensionchmod -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.

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

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