升级Xcode7后,旧工程编译出现directory not found for option '-F...错误

升级到Xcode7后,旧工程编译遇到directory not found for option '-F...'警告。解决方法是进入工程的TARGETS,选择'(工程)Tests',在'Search Paths'下的'Framework Search Paths'清空路径。若错误提示涉及LibrarySearch Paths,同样清空该路径。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

升级Xcode7后,旧工程编译出现黄色警告:

ld: warning: 
directory not found for option 
'-F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs
/iPhoneSimulator9.0.sdk/Developer/Library/Frameworks'

解决办法如下:

找到工程的"TARGETS",点击"(工程)Tests"选项,下拉找到"Search Paths"下的"Framework Search Paths",可以看到它的值为"iphoneos/Developer/Library/Frameworks",把这个路径清空即可。

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.2/3.2 MB 649.5 kB/s eta 0:00:00 Downloading greenlet-3.2.3-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (582 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 582.2/582.2 kB 484.5 kB/s eta 0:00:00 Using cached twisted-25.5.0-py3-none-any.whl (3.2 MB) Using cached attrs-25.3.0-py3-none-any.whl (63 kB) Downloading automat-25.4.16-py3-none-any.whl (42 kB) Using cached constantly-23.10.4-py3-none-any.whl (13 kB) Using cached hyperlink-21.0.0-py2.py3-none-any.whl (74 kB) Using cached incremental-24.7.2-py3-none-any.whl (20 kB) Downloading zope.interface-7.2-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (254 kB) Using cached tomli-2.2.1-py3-none-any.whl (14 kB) Building wheels for collected packages: causal-conv1d, buildtools, docopt DEPRECATION: Building &#39;causal-conv1d&#39; using the legacy setup.py bdist_wheel mechanism, which will be removed in a future version. pip 25.3 will enforce this behaviour change. A possible replacement is to use the standardized build interface by setting the `--use-pep517` option, (possibly combined with `--no-build-isolation`), or adding a `pyproject.toml` file to the source tree of &#39;causal-conv1d&#39;. Discussion can be found at https://github.com/pypa/pip/issues/6334 Building wheel for causal-conv1d (setup.py) ... error error: subprocess-exited-with-error × python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [21 lines of output] torch.__version__ = 2.6.0+cu124 /home/jian/anaconda3/envs/jian/lib/python3.10/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated. !! ******************************************************************************** Please consider removing the following classifiers in favor of a SPDX license expression: License :: OSI Approved :: BSD License See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! self._finalize_license_expression() running bdist_wheel Guessing wheel URL: https://github.com/Dao-AILab/causal-conv1d/releases/download/v1.1.0/causal_conv1d-1.1.0+cu122torch2.6cxx11abiFALSE-cp310-cp310-linux_x86_64.whl error: <urlopen error [Errno 110] Connection timed out> [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for causal-conv1d Running setup.py clean for causal-conv1d DEPRECATION: Building &#39;buildtools&#39; using the legacy setup.py bdist_wheel mechanism, which will be removed in a future version. pip 25.3 will enforce this behaviour change. A possible replacement is to use the standardized build interface by setting the `--use-pep517` option, (possibly combined with `--no-build-isolation`), or adding a `pyproject.toml` file to the source tree of &#39;buildtools&#39;. Discussion can be found at https://github.com/pypa/pip/issues/6334 Building wheel for buildtools (setup.py) ... done Created wheel for buildtools: filename=buildtools-1.0.6-py3-none-any.whl size=512370 sha256=6b1f335f3c7136899210c31e1b4528abeada164e729e866ca5ae4754a7de99b3 Stored in directory: /home/jian/.cache/pip/wheels/90/e9/2a/625d99dffa430d0b4293d3d386f63e0eb8edeeb54f3f29d208 DEPRECATION: Building &#39;docopt&#39; using the legacy setup.py bdist_wheel mechanism, which will be removed in a future version. pip 25.3 will enforce this behaviour change. A possible replacement is to use the standardized build interface by setting the `--use-pep517` option, (possibly combined with `--no-build-isolation`), or adding a `pyproject.toml` file to the source tree of &#39;docopt&#39;. Discussion can be found at https://github.com/pypa/pip/issues/6334 Building wheel for docopt (setup.py) ... done Created wheel for docopt: filename=docopt-0.6.2-py2.py3-none-any.whl size=13782 sha256=d12de046318030c0cd3045dfe557fcee1a63e5873be38e4c2972e5d3d75df50f Stored in directory: /home/jian/.cache/pip/wheels/fc/ab/d4/5da2067ac95b36618c629a5f93f809425700506f72c9732fac Successfully built buildtools docopt Failed to build causal-conv1d ERROR: Failed to build installable wheels for some pyproject.toml based projects (causal-conv1d)
最新发布
08-05
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值