Creating package failed (using productbuild)

Hi



I'v produced .app (using UnrealEngine4) and now I want to publish it on Mac AppStore.

(UnrealEngine4 has it's own building system, so the app is'nt produced from xcode)



Long story short I'v created & installed all certificates that I need, created AppID (say it's com.mycompany.myapp)

in Info.plist there is entry:



<key>CFBundleIdentifier</key>

<string>com.mycompany.myapp</string>



Now I'm signing the executable:



codesign -f -v -s "3rd Party Mac Developer Application: mycompany..." --entitlements "myapp.entitlements" "myapp.app/Contents/MacOS/MyApp"



The executable get's signed succesfully (I'v also signed all the .dylib that are part of the application and reside there, also succesfully)



now I'm signing the whole bundle:



codesign -f -v -s "3rd Party Mac Developer Application: mycompany..." --entitlements "myapp.entitlements" "myapp.app"



this also ends with success



now time to build package:



productbuild --sign "3rd Party Mac Developer Application: mycompany..." --component "myapp.app" /Applications --product "myapp.app/Contents/Info.plist" myapp.pkg



but the output is as follows:



productbuild: Adding component at /Users/Shared/MacShippingAppStores/MacNoEditor/myapp.app

productbuild: error: Can't write temporary package to "/var/folders/fk/wqy41wqj0dz432649knj2vkr0000gq/T/TemporaryItems/(A Document Being Saved By productbuild)/Y4AA5CW8PA.com.mycompany.myapp.pkg" (Cannot write package to "/var/folders/fk/wqy41wqj0dz432649knj2vkr0000gq/T/TemporaryItems/(A Document Being Saved By productbuild)/Y4AA5CW8PA.com.mycompany.myapp.pkg".).



any idea what's wrong ?

I'v also tried:

sudo productbuild --sign "3rd Party Mac Developer Application: mycompany..." --component "myapp.app" /Applications --product "myapp.app/Contents/Info.plist" myapp.pkg

the effect is that same



I'v also tried simply build package without signing it:

productbuild --component myapp.app /Applications myapp.pkg

or

sudo productbuild --component myapp.app /Applications myapp.pkg

the result is still that same



The system is MacOS 10.12 with all the latest updates, xcode is 9, yes I'v accepted the xcode license agreement.

I'v tried this on different Mac too, the error is still that same.



If I try to enter the folder in qiestion in finder /var/folders/fk/wqy41wqj0dz432649knj2vkr0000gq/T/TemporaryItems ... it does not allow me to enter there.

I'v looked at man productbuild, but there is no option for some verbosity what's wrong, and since my entitlement & Info.plist is very minimal I think that there is nothing wrong there, anything I'v missed ?

(I'm not very falimiar with mac development, so meybe it's something very stupid I'm missing ?)

I'v figured what's going on ... my app have one large data file (well this is an large app after all), the size of file is 17GB,

Just for sake of experiment I'v removed this single file from app ... and productbuild works as expected ... is there ANY limitation of single file size in pkg ??

(I have plenty of disk space, around 2TB is free at the moment, so no, this is not lack of space that's triggering the error)

Creating package failed (using productbuild)
 
 
Q