Trigger.io[Errno 18]跨设备链接
当我尝试在mac上运行包ios时,我得到以下信息:Trigger.io[Errno 18]跨设备链接,trigger.io,Trigger.io,当我尝试在mac上运行包ios时,我得到以下信息: [INFO] Forge tools running at version 3.3.5 [INFO] Update result: you already have the latest tools [INFO] Configuration is unchanged: using existing templates [INFO] Checking JavaScript files... [INFO] JavaScript check comp
[INFO] Forge tools running at version 3.3.5
[INFO] Update result: you already have the latest tools
[INFO] Configuration is unchanged: using existing templates
[INFO] Checking JavaScript files...
[INFO] JavaScript check complete
[INFO] Verifying your configuration settings...
[INFO] Configuration settings check complete
[INFO] Development build created. Use forge run to run your app.
[INFO] Forge tools running at version 3.3.5
[INFO] Checking JavaScript files...
[INFO] JavaScript check complete
[INFO] Verifying your configuration settings...
[INFO] Configuration settings check complete
[INFO] Starting package process for iOS
[INFO] Going to package: /Users/******************/device-ios.app
[INFO] Plist OK
[INFO] 1 Provisioned Device(s):
[INFO] ['c**************************b']
[ERROR] [Errno 18] Cross-device link
应用程序配置、本地配置等上的设置都已正确填写
这里是调试输出
........
in run
self._run_task(func_name, args, kw)
File "/Users/username/forge-workspace/compapp1/.template/generate_dynamic/build.py", line 293, in _run_task
self.tasks[func_name](self, *args, **kw)
File "/Users/username/forge-workspace/compapp1/.template/generate_dynamic/ios_tasks.py", line 568, in package_ios
certificate_password=certificate_password,
File "/Users/username/forge-workspace/compapp1/.template/generate_dynamic/ios_tasks.py", line 362, in create_ipa_from_app
self._create_entitlements_file(build, plist_dict, temp_file_path)
File "/Users/username/forge-workspace/compapp1/.template/generate_dynamic/ios_tasks.py", line 299, in _create_entitlements_file
_replace_in_file(temp_file_path, 'APP_ID', bundle_id)
File "/Users/username/forge-workspace/compapp1/.template/generate_dynamic/ios_tasks.py", line 294, in _replace_in_file
os.rename(tmp_file, filename)
OSError: [Errno 18] Cross-device link
您使用的是外置硬盘吗?如果是这样的话,看起来我们已经被Python的局限性咬到了这里():
在短期内,您是否可以不在外部硬盘上运行forge命令?我们将致力于解决潜在问题,并在这里报告。我在Ubuntu上编译iOS软件包时遇到了同样的问题。我有一个加密的主目录,这可能是跨文件系统问题的原因 幸运的是,由于@Amir的出色响应,我能够找到一个简单的解决方案 从 如果指定了dir,则将在该目录中创建文件;否则,将使用默认目录。默认目录是从平台相关列表中选择的,但是应用程序的用户可以通过设置TMPDIR、TEMP或TMP环境变量来控制目录位置 我只是通过以下命令启动触发器来移动临时目录:
export TMPDIR="/home/me/tmp"
python /home/me/source/TriggerToolkit/run_trigger_toolkit.py
转到
/Users/username/forge workspace/compapp1/.template/generate\u dynamic/ios\u tasks.py
第294行
更改此行:
os.rename(tmp\u文件,文件名)
对于这一点:
shutil.move(tmp\u文件,文件名)
再打包
这在v1.4.34 Trigger.io平台版本中已修复-请参阅这方面的任何进展?我使用的驱动器不是外部的,但也不是我的启动卷。构建过程不应该触及我的启动卷上的任何文件(尽管触发器工具包安装在那里)。这在v1.4.34平台中已修复谢谢。上面的答案帮助我解决了我遇到的问题。
export TMPDIR="/home/me/tmp"
python /home/me/source/TriggerToolkit/run_trigger_toolkit.py