如何指定哪个Apple ID xCode应用于Product-> Archive-> Export(How to specify which Apple ID xCode should use for Product->Archive->Export)
首先,我正在使用其他人的Mac来编译应用程序(长篇故事)。
其次,我是一个xCode n00b。 注册了两个Apple ID。 一个是禁用/破坏但我不想删除它(见第一句)。
当我尝试导出应用程序时,在Product-> Archive-> Export之后,xCode(6.2)使用了错误的Apple ID。 我只需要能够指定必须使用第二个Apple ID。
我怎么做?
Firstly, I'm using someone else's Mac to compile an app (long story).
Secondly, I'm an xCode n00b. Two Apple IDs are registered. One is disabled/broken but I don't want to just delete it (see 1st sentence).
When I try to export the app, after Product->Archive->Export, xCode (6.2) is using the wrong Apple ID. I simply need to be able to specify that the 2nd Apple ID must be used.
How do I do that?
原文:https://stackoverflow.com/questions/29423888
最满意答案
据推测,Apache不是像你一样运行,而是作为自己的用户运行,所以它不会使用你的主目录。
无论如何,您不应该在主目录中真正拥有代码。 选择一个标准位置 - 例如
/srv
或/var/sites
等新的顶级目录。Presumably Apache is not running as you, but as its own user, so it won't use your home directory.
You shouldn't really have your code in a home directory anyway. Pick a standard place - eg a new top-level directory like
/srv
, or/var/sites
, or something.
相关问答
更多-
Django部署,所有链接都以index.wsgi为前缀(Django deployment, all links are prepended with index.wsgi)[2022-01-08]
对于初学者: WSGIScriptAlias / var/www/index.wsgi 是错的。 您缺少WSGI脚本路径上的前导斜杠。 您也不应该像在可能的情况下那样坚持在DocumentRoot目录中使用index.wsgi。 如果由于某种原因没有使用带有WSGIScriptAlias的VirualHost,并且在Apache配置中的其他位置设置了wsgi-script的.wsgi处理程序,则意味着/index.wsgi的URL可以用你所有的访问你的Django从那里开始的问题。 这是因为Django会 ... -
-p需要python可执行文件,而不是安装目录。 在$ PATH中给它一个python可执行文件的名称,或者你要运行的python可执行文件的完整路径。 -p expects a python executable, not an installation directory. Give it the name of a python executable in your $PATH or the full path the the python executable you want to run.
-
在我的app.wsgi文件中,我有这样的东西。 您需要将其更改为放置到您的虚拟环境所在的位置,本例中位于/ opt / ve / ve_name /下。 import os # activate virtualenv activate_this = os.path.expanduser("/opt/ve/ve_name/bin/activate_this.py") execfile(activate_this, dict(__file__=activate_this)) In my app.wsgi fi ...
-
据推测,Apache不是像你一样运行,而是作为自己的用户运行,所以它不会使用你的主目录。 无论如何,您不应该在主目录中真正拥有代码。 选择一个标准位置 - 例如/srv或/var/sites等新的顶级目录。 Presumably Apache is not running as you, but as its own user, so it won't use your home directory. You shouldn't really have your code in a home directo ...
-
在卸载所有内容并删除所有virtualenv后,我能够成功安装。 只要你有 ~/.pydistutils.cfg 您可能需要按照以下说明进行操作: https : //github.com/mxcl/homebrew/issues/12667#issuecomment-6257342 After uninstalling everything and removing all the virtualenv, I was able to successfully install. Just incase i ...
-
Apache2 + VirtualEnv IO错误:[Errno 13]权限被拒绝(Apache2 + VirtualEnv IOError: [Errno 13] Permission denied)[2024-02-17]
为了能够访问文件,apache所有者至少需要文件上方所有目录中的x位,并且r位需要文件本身。 您的nrUser目录缺少x位; chmod 755 /home/nrUser应该修复你的问题。 To be able to access the files, the apache owner needs at least the x bits on all directories above your files, and the r bit to the files themselves. Your nrUse ... -
您不需要为Django生成的原始wsgi.py更改任何内容。 通常有足够的: import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTINGS_MODULE", "servicesite.settings") application = get_wsgi_application() 您的Apache配置最好应该是: WSGIDaemonProcess service site ...
-
你可以在python路径上添加你的virtualenv,如: import site site.addsitedir('/home/user/.virtualenvs/myapp1/lib/python2.7/site-packages') 然后导入应该工作 The only practical solution I could find here is to run the virtualenv's activate_this.py script, look for what I need, then ...
-
有两件“神奇”。 1)shebang行通知内核正确的解释器使用。 当您调用virtualenv2 ,内核会将其扩展为/usr/bin/python2 virtualenv2 。 类似地,当你调用vitualenv3 ,内核会将其扩展为/usr/bin/python3 virtualenv3 。 2) virtualenv.main()基于当前运行的解释器创建虚拟环境。 例如,如果/usr/bin/python3调用了virtualenv.main() ,那么它会创建一个基于/usr/bin/python3的 ...
-
您需要检查文件的权限: ls -alrt / usr / bin / virtualenv 该文件需要具有用户,组和所有权限的执行权限。 You need to check the permissions for the file: ls -alrt /usr/bin/virtualenv The file needs to have execute permission for user, group and all.