[Bug 772035] Apple Sandbox and Appstore Upload issue.

bumjun-kim bamzunee at gmail.com
Wed Sep 28 01:54:37 UTC 2016


Bug 771860 <https://bugzilla.gnome.org/show_bug.cgi?id=771860> is
actually that I posted.
Bug 771860 <https://bugzilla.gnome.org/show_bug.cgi?id=771860> was
about that I couldn't apply codesign and it was sorted out with the
help.
Bug 772035 <https://bugzilla.gnome.org/show_bug.cgi?id=772035> is more
related to this.
when I applied sandbox and codesign on gst-plugin-scanner and
gst-ptp-helper,gst_init doesnt work

---------------------------------------------------------------------------------------------------

Hi, GStreamer,

Thanks for your comment.

I have a few more Inquiries regarding Appstore Upload.(AppSandbox)

Streamer version : 1.6.4(using cerebra universal build)
build platform : mac OS X 10.11 el capitan

GStreamer.framework/Versions/1.0/libexec/gstreamer-1.0/gst-plugin-scanner
GStreamer.framework/Versions/1.0/libexec/gstreamer-1.0/gst-ptp-helper

Regarding Bug 771860
(https://bugzilla.gnome.org/show_bug.cgi?id=771860), I sorted out
TestCase 1~3 Codesign problem with your help.
StackOverFlow(https://stackoverflow.com/questions/25950544/codesign-what-are-unsealed-contents)

However, I couldn't sort out TestCase 4 with
StackOverFlow(https://stackoverflow.com/questions/25950544/codesign-what-are-unsealed-contents)

There is a "TestCase 4" of Bug771860 AppLoader error down below

 - AppLoader Upload Error :
    ERROR ITMS-90296: "App sandbox not enabled. The following
executables must include the "com.apple.security.app-sandbox"
entitlement with a Boolean value of true in the entitlements property
list: [( "com.myplayer.osx.pkg/Payload/MyApp.app/Contents/Frameworks/GStreamer.framework/Versions/1.0/libexec/gstreamer-1.0/gst-plugin-scanner",
"com.myplayer.osx.pkg/Payload/MyApp.app/Contents/Frameworks/GStreamer.framework/Versions/1.0/libexec/gstreamer-1.0/gst-ptp-helper"
)] Refer to App Sandbox page at
https://developer.apple.com/devcenter/mac/app-sandbox/ for more
information on sandboxing your app."
      ERROR ITMS-90260: "Bad Bundle Executable. You must include a
valid CFBundleExecutable key in the nested bundle osx-framework
[com.myplayer.osx.pkg/Payload/MyApp.app/Contents/Frameworks/GStreamer.framework]
property list file."
      ERROR ITMS-90261: "Bad CFBundleExecutable. Cannot find
executable file that matches the value of CFBundleExecutable in the
nested bundle osx-framework
[com.myplayer.osx.pkg/Payload/MyApp.app/Contents/Frameworks/GStreamer.framework]
property list file."

To sort out this error,  I did some tests down below.

Test1
 1) I changed osx-framework to GStreamer in
GStreamer.framework/Resources/Info.plist Modify
   -> Bundle name, Bundle identifier
 2) Codesign
 - Terminal Input Command(Codesign for
GStreamer.framework/Versions/1.0/lib Directory) :
find MyApp.app/Contents/Frameworks/GStreamer.framework/Versions/1.0/
-name *.dylib | while read a ; do code sign —verbose —sign '3rd Party
Mac Developer Application: My ID' ${a}; done & find
MyApp.app/Contents/Frameworks/GStreamer.framework/Versions/1.0/ -name
*.so | while read b ; do code sign —verbose —sign '3rd Party Mac
Developer Application: My ID' ${b}; done | code sign —verbose —sign
'3rd Party Mac Developer Application: My ID'
MyApp.app/Contents/Frameworks/GStreamer.framework/Versions/1.0/lib/GStreamer
 - Terminal Input Command(Codesign for MyApp, MyFramework.framework,
GStreamer.framework) :
code sign —all-architectures -f —deep -s '3rd Party Mac Developer
Application: My ID' —entitlements "MyApp.entitlements" "MyApp.app"
 3) Try AppLoader Upload
  - Make PKG File and Upload :
    -> Result : Fail
    -> Error Message : ERROR ITMS-90260: "Bad Bundle Executable. You
must include a valid CFBundleExecutable key in the nested bundle
osx-framework [com.myplayer.osx.pkg/Payload/MyApp.app/Contents/Frameworks/GStreamer.framework]
property list file."

But, I Fixed One Error(ERROR ITMS-90261: "Bad CFBundleExecutable.
Cannot find executable file that matches the value of
CFBundleExecutable in the nested bundle osx-framework
[com.myplayer.osx.pkg/Payload/MyApp.app/Contents/Frameworks/GStreamer.framework]
property list file.")

Test2.
 1) I changed osx-framework to GStreamer in
GStreamer.framework/Resources/Info.plist Modify
   -> Bundle name, Bundle identifier
 2) Codesign
 - Terminal Input Command(Codesign for
GStreamer.framework/Versions/1.0/lib Directory) :
find MyApp.app/Contents/Frameworks/GStreamer.framework/Versions/1.0/
-name *.dylib | while read a ; do code sign —verbose —sign '3rd Party
Mac Developer Application: My ID' ${a}; done & find
MyApp.app/Contents/Frameworks/GStreamer.framework/Versions/1.0/ -name
*.so | while read b ; do code sign —verbose —sign '3rd Party Mac
Developer Application: My ID' ${b}; done | code sign —verbose —sign
'3rd Party Mac Developer Application: My ID'
MyApp.app/Contents/Frameworks/GStreamer.framework/Versions/1.0/lib/GStreamer
 - Terminal Input Command(Codesign for
GStreamer.framework/Versions/1.0/libexec/gstreamer-1.0/gst-plugin-scanner)
:
codesign -f -v -s '3rd Party Mac Developer Application: My ID'
—entitlements "MyApp.entitlements"
"MyApp.app/Contents/Frameworks/GStreamer.framework/Versions/1.0/libexec/gstreamer-1.0/gst-plugin-scanner"
 - Terminal Input Command(Codesign for
GStreamer.framework/Versions/1.0/libexec/gstreamer-1.0/gst-ptp-helper)
:
codesign -f -v -s '3rd Party Mac Developer Application: My ID'
—entitlements "MyApp.entitlements"
"MyApp.app/Contents/Frameworks/GStreamer.framework/Versions/1.0/libexec/gstreamer-1.0/gst-ptp-helper"
 - Terminal Input Command(Codesign for MyApp, MyFramework.framework,
GStreamer.framework) :
code sign —all-architectures -f —deep -s '3rd Party Mac Developer
Application: My ID' —entitlements "MyApp.entitlements" "MyApp.app"
 3) Try AppLoader Upload
  - Make PKG File and Upload :
    -> Result : Succes
But, My app could not be executed.

Test3.
I succeed uploading but the app was not able to use. Therefore I
tested again to find a reason.

 1) I changed osx-framework to GStreamer in
GStreamer.framework/Resources/Info.plist Modify
   -> Bundle name, Bundle identifier
 2) Codesign
 - Terminal Input Command(Codesign for
GStreamer.framework/Versions/1.0/lib Directory) :
find MyApp.app/Contents/Frameworks/GStreamer.framework/Versions/1.0/
-name *.dylib | while read a ; do code sign —verbose —sign '3rd Party
Mac Developer Application: My ID' ${a}; done & find
MyApp.app/Contents/Frameworks/GStreamer.framework/Versions/1.0/ -name
*.so | while read b ; do code sign —verbose —sign '3rd Party Mac
Developer Application: My ID' ${b}; done | code sign —verbose —sign
'3rd Party Mac Developer Application: My ID'
MyApp.app/Contents/Frameworks/GStreamer.framework/Versions/1.0/lib/GStreamer
 - Terminal Input Command(Codesign for
GStreamer.framework/Versions/1.0/libexec/gstreamer-1.0/gst-plugin-scanner)
:
codesign -f -v -s '3rd Party Mac Developer Application: My ID'
"MyApp.app/Contents/Frameworks/GStreamer.framework/Versions/1.0/libexec/gstreamer-1.0/gst-plugin-scanner"
 - Terminal Input Command(Codesign for
GStreamer.framework/Versions/1.0/libexec/gstreamer-1.0/gst-ptp-helper)
:
codesign -f -v -s '3rd Party Mac Developer Application: My ID'
"MyApp.app/Contents/Frameworks/GStreamer.framework/Versions/1.0/libexec/gstreamer-1.0/gst-ptp-helper"
 - Terminal Input Command(Codesign for MyApp, MyFramework.framework,
GStreamer.framework) :
code sign —all-architectures -f —deep -s '3rd Party Mac Developer
Application: My ID' —entitlements "MyApp.entitlements" "MyApp.app"
 3) Try AppLoader Upload
  - Make PKG File and Upload :
    -> Result : Fail
    -> Error Message : ERROR ITMS-90260: "Bad Bundle Executable. You
must include a valid CFBundleExecutable key in the nested bundle
osx-framework [com.myplayer.osx.pkg/Payload/MyApp.app/Contents/Frameworks/GStreamer.framework]
property list file."

But, MyApp can be executed.

it worked well with applying code sign on gat-plugin-scanner and
gst-ptp-helper but when code sign and sandbox are applied, it was
failed.

How can I sort out this issue?



2016-09-27 17:36 GMT+09:00 GStreamer <bugzilla at gnome.org>:

> Sebastian Dröge (slomo)
> <https://bugzilla.gnome.org/page.cgi?id=describeuser.html&login=slomo%40coaxion.net> changed
> bug 772035 <https://bugzilla.gnome.org/show_bug.cgi?id=772035>
> What Removed Added
> Status NEW RESOLVED
> CC   slomo at coaxion.net
> Resolution --- DUPLICATE
>
> *Comment # 1 <https://bugzilla.gnome.org/show_bug.cgi?id=772035#c1> on bug
> 772035 <https://bugzilla.gnome.org/show_bug.cgi?id=772035> from Sebastian
> Dröge (slomo)
> <https://bugzilla.gnome.org/page.cgi?id=describeuser.html&login=slomo%40coaxion.net>
> *
>
> Thanks for taking the time to report this.
> This particular bug has already been reported into our bug tracking system, but
> please feel free to report any further bugs you find.
>
> *** This bug has been marked as a duplicate of bug 771860 <https://bugzilla.gnome.org/show_bug.cgi?id=771860> ***
>
> ------------------------------
> You are receiving this mail because:
>
>    - You reported the bug.
>
>




--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Re-Bug-772035-Apple-Sandbox-and-Appstore-Upload-issue-tp4679827.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160927/3b97cfcc/attachment-0001.html>


More information about the gstreamer-devel mailing list