Mac OS app, sandbox with command line tool?
2014-03-29 19:05
1221 查看
10down votefavorite 3 | I've made an app which includes a command-line tool. I have enabled the app's sandbox, and tested that it works. I've also code-signed both the app and the command line tool. But when I upload the app to iTunes, I received a email telling me "App sandbox not enabled". Apparently I need to set entitlement file of key com.apple.security.app-sandboxwith truevalue, and list the executables: /Contents/MacOS/myAppand /contents/Frameworks/x86/myCommandLineTool. I'm sure I've enabled sandbox in Xcode, so I thought the problem was with the command line tool. How can I enable sandbox for command line tool? Or is there a specific folder I should put the tool? Any suggestions welcome - I have been troubled by it for several days. |
1. create an entitlement file - for me it was just com.apple.security.inherit set to YES. I created this file in xcode itself.
2. Now sign this commandline tool using the command:
codesign --entitlements ./entitlements.plist -s "copy & paste your certificate from keychain" ./commandlinetool
3. Just to be sure, check using this command:
codesign --display --entitlements - ./commandlinetool
4. This tool was already included in the project. So just compile, archive & submit
The status is now 'waiting for review' :-) Hope this helps
相关文章推荐
- Mac OS app, sandbox with command line tool
- 运行(Command Line Tool)Terminal App,并且返回输出结果
- MAC OS 如何安装命令行工具:Command Line Tools
- 3: Change File Permissions(Challenge: Working with the Command Line)
- USING THE NETWORKMANAGER COMMAND LINE TOOL, NMCLI
- Install and set JAVA home on MAC OS with commandline
- Calling JNI Functions with Java Object Arguments from the Command Line
- macos安装xcode command line tool的两种方法
- How to Use Android ADB Command Line Tool on mac
- mac OS 使用SVN命令行工具报 xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)
- Single Instance Application with command line interface
- Cordova 3.0 Plugin 安装 及"git" command line tool is not installed
- build failed with script: gradlew.bat :app:assembleDebug -P freelineBuild=true --stacktrace
- How to Use Kdiff3 as a 3-way Merge Tool With Mercurial, Git, and Tower.app
- Install YouTube-DL – A Command Line Video Download Tool for Linux
- Enable rsh on MAC OS with command line
- 4: Create A Virtualenv( Challenge: Working with the Command Line)
- ubuntu - Installed Ruby 1.9.3 with RVM but command line doesn't show ruby -v - Stack Overflow
- JMeterPluginsCMD Command Line Tool
- Apache Ant -a java library and command-line tool for building different types of applications