Strange error of executable while creating archive/.pkg with PDF content to Host at Apple

走远了吗. 提交于 2019-12-08 08:26:39

问题


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.

Here are the steps I am following to create the Package (.pkg):

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

  • 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:

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.

Here is the ref url: Configuring and Creating App Store Hosted Content for iOS 6 In-App Purchases


回答1:


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

replace yourfile.extension with actual file name of yours

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.



来源:https://stackoverflow.com/questions/14810971/strange-error-of-executable-while-creating-archive-pkg-with-pdf-content-to-host

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!