xcodebuild failure clang:error no such file or directory:

前端 未结 9 2230
伪装坚强ぢ
伪装坚强ぢ 2021-01-01 21:50

Having a problem when building with xcodebuild. My project/app builds fine with the Xcode - gui. It simply isn\'t finding/building the libcryptopp library which is part of t

9条回答
  •  滥情空心
    2021-01-01 22:43

    I had the same problem, but for a resource file .m

    I opened target -> build phases -> Compile sources

    and I found the file the compiler was tell it can't find duplicated: one with strange icon and the other with a normal icon. I simply removed the one with strange icon and it worked. ( I added the file multiple times and I had a merge conflict before that which made something wrong in the project file)

    For your case I think you need to remove the lib from target dependencies list and add it again. This may work for you.

提交回复
热议问题