问题
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