Xcode10 error: can't exec (No such file or directory) for a user defined build setting
Xcode10 error: can't exec (No such file or directory) for a user defined build setting
我在使用用户定义的构建设置构建项目时得到 "error: can't exec (No such file or directory)",该设置是脚本的路径。该项目构建于 Xcode 9.
ld = $(USER_LIBRARY_DIR)/Application\ Support/BlackBerry/Good.platform/iOS/FIPS_module/$FIPS_PACKAGE/bin/gd_fipsld
给予
error: can't exec '/Users/username/Library/Application\ Support/BlackBerry/Good.platform/iOS/FIPS_module/arm64.sdk/bin/gd_fipsld' (No such file or directory)
如何解决?
在 Xcode10 中,新的构建系统不支持波浪号 (~) 字符,该字符在路径中被替换为 $(HOME)。
Before: ~/Library/Application Support/BlackBerry/Good.platform/iOS/FIPS_module/$FIPS_PACKAGE/bin/gd_fipsld
After: $(HOME)/Library/Application Support/BlackBerry/Good.platform/iOS/FIPS_module/$FIPS_PACKAGE/bin/gd_fipsld
注意:需要在 default.xcconfig 文件中进行更改。
我在使用用户定义的构建设置构建项目时得到 "error: can't exec (No such file or directory)",该设置是脚本的路径。该项目构建于 Xcode 9.
ld = $(USER_LIBRARY_DIR)/Application\ Support/BlackBerry/Good.platform/iOS/FIPS_module/$FIPS_PACKAGE/bin/gd_fipsld
给予
error: can't exec '/Users/username/Library/Application\ Support/BlackBerry/Good.platform/iOS/FIPS_module/arm64.sdk/bin/gd_fipsld' (No such file or directory)
如何解决?
在 Xcode10 中,新的构建系统不支持波浪号 (~) 字符,该字符在路径中被替换为 $(HOME)。
Before: ~/Library/Application Support/BlackBerry/Good.platform/iOS/FIPS_module/$FIPS_PACKAGE/bin/gd_fipsld
After: $(HOME)/Library/Application Support/BlackBerry/Good.platform/iOS/FIPS_module/$FIPS_PACKAGE/bin/gd_fipsld
注意:需要在 default.xcconfig 文件中进行更改。