xcode 错误:参数列表太长:递归标题扩展在 /Applications/Adobe Acrobat 8 Professional/Adobe Acrobat Professional.app/ 失败
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3490629/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Error : Argument list too long:recursive header expansion failed at /Applications/Adobe Acrobat 8 Professional/Adobe Acrobat Professional.app/
提问by Cristina Martin
Can Any one tell why this error occur and how to resolve it
任何人都可以告诉为什么会发生此错误以及如何解决它
Check Dependencies
Argument list too long: recursive header expansion failed at /Applications/Adobe Acrobat 8 Professional/Adobe Acrobat Professional.app/Contents/Plug-ins/Comments.acroplugin/Contents/MacOS.
检查依赖项
参数列表太长:递归标题扩展在 /Applications/Adobe Acrobat 8 Professional/Adobe Acrobat Professional.app/Contents/Plug-ins/Comments.acroplugin/Contents/MacOS 失败。
回答by adruzh
in my case the error was empty variable in "Header Search Paths" field (in project information) with recursion enabled.
在我的情况下,错误是启用递归的“标题搜索路径”字段(在项目信息中)中的空变量。
This lead to pass value "/**" to a tool.
这导致将值“/**”传递给工具。
回答by Nuno Vinhas
I'll share another scenario where you can have the same error.
我将分享另一个场景,您可能会遇到相同的错误。
I had the same problem in my case was related with the Derived Data. After clean the Derived Data folder the problem disappeared.
在我的案例中,我遇到了同样的问题,这与派生数据有关。清理派生数据文件夹后,问题就消失了。
回答by praveen
I just removed all entries under framework search paths. It works fine, in some other cases you may need to enable always search user paths flag to true.
我刚刚删除了框架搜索路径下的所有条目。它工作正常,在其他一些情况下,您可能需要将始终搜索用户路径标志启用为 true。
回答by J.dev
In my case, deleting the build folder worked.
就我而言,删除构建文件夹有效。
rm -rf ios/build
回答by Declan McKenna
In the Project build settings Framework Search Paths I replaced:
在我替换的项目构建设置框架搜索路径中:
/Users/My.Name/Documents/My-Project/**
/Users/My.Name/Documents/My-Project/**
with
和
/Users/My.Name/Documents/My-Project/
/Users/My.Name/Documents/My-Project/
回答by NadZ
I solved by revising Framework SearchPaths in .xcodeproj to
我通过将 .xcodeproj 中的 Framework SearchPaths 修改为
$(PROJECT_DIR)/../../../ios/Pods.
回答by Kanishk Gupta
For future folks ... I faced this issue for a different reason.
对于未来的人......我出于不同的原因面临这个问题。
Just check in your Project Settings
that Build System
is set to New Build System (Default)
只要检查你的Project Settings
那个Build System
设置为New Build System (Default)
Happy Coding
快乐编码
回答by Fonix
If you are using react native and run into this error, this helped me:
如果您使用 react native 并遇到此错误,这对我有帮助:
I had to use react-native unlink xxx
to unlink the library i was trying to add which caused this error to occur (funny enough the error was about a different library not the one i just added)
我不得不使用react-native unlink xxx
取消链接我试图添加的库,这导致了这个错误发生(有趣的是,错误是关于一个不同的库,而不是我刚刚添加的库)
After unlinking i followed the steps the library explained in its readme on how to add it manually without using the react native link, then it was happy after that.
取消链接后,我按照库在其自述文件中解释的关于如何在不使用本机链接的情况下手动添加它的步骤进行操作,然后就很高兴了。
Saw on reddit that a lot of people been complaining that react-native link
breaks quite often and causes problems like this
在 reddit 上看到很多人都在抱怨react-native link
经常崩溃并导致这样的问题
回答by The iOSDev
the only thing to remove is search path from project information this solves my problem
唯一要删除的是项目信息中的搜索路径,这解决了我的问题
回答by tomj
A different solution for me. I am using a static lib in my XCode project. In XCode preferences > Source trees I set up the lib as follows:
对我来说不同的解决方案。我在我的 XCode 项目中使用静态库。在 XCode 首选项 > 源树中,我按如下方式设置了 lib:
Setting Name: MY_IPHONE_LIB
设置名称:MY_IPHONE_LIB
Display Name: MY_IPHONE_LIB
显示名称:MY_IPHONE_LIB
Path: ../../MyIphoneLib
路径:../../MyIphoneLib
Then in the project and target build options User Header Search Paths I add recursive path to $(MY_IPHONE_LIB) this shows as ../../MyIphoneLib** in the build settings
然后在项目和目标构建选项 User Header Search Paths 我添加递归路径到 $(MY_IPHONE_LIB) 这在构建设置中显示为 ../../MyIphoneLib**
My problem was I had a trailing space after the path in project trees so instead of "../../MyIphoneLib" I had entered "../../MyIphoneLib "
我的问题是我在项目树中的路径后面有一个尾随空格,所以我输入了“../../MyIphoneLib”而不是“../../MyIphoneLib”
So this all looked fine in the settings but I got the 'argument list too long' error for a completely unrelated file!. Removing the trailing space fixed it.
所以这一切在设置中看起来都很好,但是对于一个完全不相关的文件,我得到了“参数列表太长”错误!。删除尾随空格修复了它。