类似错误如下:

error: install_name_tool: changing install names or rpaths can't be redone for: /Users/gensee/Library/Developer/Xcode/DerivedData/Training-emkrlchivsbjssanebsiarnsozuw/Build/Products/Debug/Training.app/Contents/MacOS/Training (for architecture x86_64) because larger updated load commands do not fit (the program must be relinked, and you may need to use -headerpad or -headerpad_max_install_names)
error: install_name_tool: changing install names or rpaths can't be redone for: /Users/gensee/Library/Developer/Xcode/DerivedData/Training-emkrlchivsbjssanebsiarnsozuw/Build/Products/Debug/Training.app/Contents/MacOS/Training (for architecture x86_64) because larger updated load commands do not fit (the program must be relinked, and you may need to use -headerpad or -headerpad_max_install_names)
finish install_name_tool target /Users/gensee/Library/Developer/Xcode/DerivedData/Training-emkrlchivsbjssanebsiarnsozuw/Build/Products/Debug/Training.app/Contents/MacOS/Training
Command PhaseScriptExecution emitted errors but did not return a nonzero exit code to indicate failure

原因是我引入了dylib库,需要修改其引用关系,所以使用了 install_name_tool 命令添加了 修改脚本 ,发生了这个报错

解决方法是在other linker中添加-headerpad_max_install_names

-headerpad_max_install_names作用就是允许开发人员修改dylib的install_name为其想要的值,如果不设置,大概率会出现脚本错误。

同时也可能导致 codesign_allocate: can’t allocate code signature data 的错误

参考文章:
https://software.intel.com/zh-cn/node/509396
https://stackoverflow.com/questions/28324785/install-name-tool-cant-use-change-because-larger-updated-load-commands-do-not

mac开发-install_name_tool: changing install names or rpaths can't be redone for:相关推荐

  1. mac开发配置手册(全)

    Mac 开发配置手册 手册内容为「如何让一部全新的 MacBook 快速完成开发环境配置」,主要面向 Web 开发者.其中的指导,在 Mavericks 和 Yosemite 上有效,其他版本系统并未 ...

  2. python电脑配置苹果笔记本-tensorflow学习笔记1——mac开发环境配置

    1. mac电脑推荐配置 内存:8G+ cpu:i5+ 硬盘:SSD 128G+ 本人的电脑配置是cpu:i7, 内存:16G,硬盘:SSD 256G 2. mac开发环境配置 1.1 安装pip 打 ...

  3. Mac开发必备工具(二)—— iTerm 2

    iTerm 2 简介 iTerm 2 is a terminal emulator for Mac OS X that does amazing things. iTerm 2 有很多能够提升效率的实 ...

  4. Mac开发必备工具(一)—— Homebrew

    Homebrew 简介 macOS 缺失的软件包管理器.使用 Homebrew 安装 Apple 没有预装但 你需要的东西.官网有中文说明. 安装与配置 Homebrew 的安装非常简单,将下面这条命 ...

  5. 关于使用mac开发的一些小技巧

    关于使用mac开发的一些小技巧 一.mac OS Catalina(10.15)无法在根目录创建文件夹 二.Mac OS 10.13.1后删除了telnet命令 三.jd-gui安装(java1.8以 ...

  6. mac linux 编译环境配置,mac开发环境配置

    个人mac开发环境配置流程,持续更新. 1.安装Homebrew 使用下面命令安装 /usr/bin/ruby -e "$(curl -fsSL https://raw.githubuser ...

  7. Mac开发 - 使用CCMenu和CCMenuItem添加菜单、右击菜单、Dock菜单

    Mac开发 - 使用CCMenu和CCMenuItem添加菜单.右击菜单.Dock菜单 1.添加一个Dock右击菜单NSMenu *appDockMenu = [[NSMenu alloc] init ...

  8. 中文 iOS/Mac 开发博客列表

    中文 iOS/Mac 开发博客列表 本博客列表会不断更新维护,如果有推荐的博客,请到此处提交博客信息. 本博客列表涉及的文章内容支持 定制化Google搜索,特别感谢 JeOam 提供并帮助更新. 本 ...

  9. 学习Mac开发第四弹 通过NSImageView加载图片

    学习Mac开发第四弹 通过NSImageView加载图片 创建NSImageView 1 . 拖拽大法好 Autolayout 创建一个宽高160 *160 的NSImageView 创建是正方形的 ...

最新文章

  1. 分享Leangoo敏捷工具操作视频
  2. TensorFlow学习笔记(二十五)CNN的9大模型
  3. python-while循环简单版-练习
  4. Yii 2 —— Backend自动出现登录页
  5. Python爬虫-《神雕侠侣》
  6. Fail to queue the whole FAL gap in dataguard一例
  7. 老司机 iOS 周报 #23 | 2018-06-18
  8. 计算机网络--网络层
  9. 西门子S7-300 PLC视频教程(百度网盘)
  10. 软件测试 | App测试——Appium实战总结,淘宝App测试项目案例
  11. grep -E 即 egrep 匹配多个
  12. 金蝶检测服务器响应异常,连接金蝶云服务器异常 请检查
  13. HTMLdiv标签滑条
  14. 每日一题 | 数学神童的红眼睛与蓝眼睛问题
  15. 如何用四条直线把这9个点连起来,要求这四条直线是连续的
  16. 关于Ctrl+PageDown在使用查找功能后不能使用的问题
  17. 切片器可以设置日期格式?_Excel切片器,原来有这么多厉害的用法
  18. 深度探索Hyperledger技术与应用之超级账本的典型交易流程
  19. Python第三方库之MedPy
  20. wcdma码片速率_转载 WCDMA中码片速率、符号速率、bit速率 WCDMA常用概念

热门文章

  1. 江苏版M401A_晶晨S905L3A_2+16G_安卓9_原厂官改线刷固件包
  2. getter(访问器)和setter(修改器)用法
  3. cpu刷新缓存是什么意思_CPU缓存刷新谬误
  4. Sqlite数据库导入到MySQL中
  5. 【干货分享】亚马逊百万销量卖家的选品技巧大放送
  6. react初始高阶组件
  7. 《本人娶刘亦菲的可行性报告》省级期刊收录,杂志社回应:早年管理不规范...
  8. matlab 纯迟延_基于Matlab参数辨识的纯迟延系统预估控制在火电厂的应用
  9. Kraken taxonomic sequence classification system
  10. ShaderGraph——扭曲