不小心删除 Podfile 后出错
Error after accidentally deleting Podfile
我犯了一个巨大的错误,删除了 Xcode iOS 应用程序中的一个 podFile。我认为错误来自该文件,而实际上是另一个文件。
长话短说,我删除了 LevelDB pod,现在应用程序在尝试启动后给我这个错误:
duplicate symbol '_pb_field_iter_find' in:
/Users/andreagualandris/Library/Developer/Xcode/DerivedData/InstagramClone-agfsqctheamzqfcdwrbfiaaauqhd/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/nanopb.build/Objects-normal/x86_64/pb_common 2.o
/Users/andreagualandris/Library/Developer/Xcode/DerivedData/InstagramClone-agfsqctheamzqfcdwrbfiaaauqhd/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/nanopb.build/Objects-normal/x86_64/pb_common.o.
ld: 3 duplicate symbols for architecture x86_64
我不知道怎么离开这里;我必须重新安装 podfile 吗?我可以通过做其他事情来解决这个问题吗?感谢任何能帮助我的人。
在终端中,运行 pod install
在你的项目目录中,应该没问题。
清除派生数据。然后尝试 运行 pod install 并构建应用程序。
我犯了一个巨大的错误,删除了 Xcode iOS 应用程序中的一个 podFile。我认为错误来自该文件,而实际上是另一个文件。 长话短说,我删除了 LevelDB pod,现在应用程序在尝试启动后给我这个错误:
duplicate symbol '_pb_field_iter_find' in:
/Users/andreagualandris/Library/Developer/Xcode/DerivedData/InstagramClone-agfsqctheamzqfcdwrbfiaaauqhd/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/nanopb.build/Objects-normal/x86_64/pb_common 2.o
/Users/andreagualandris/Library/Developer/Xcode/DerivedData/InstagramClone-agfsqctheamzqfcdwrbfiaaauqhd/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/nanopb.build/Objects-normal/x86_64/pb_common.o.
ld: 3 duplicate symbols for architecture x86_64
我不知道怎么离开这里;我必须重新安装 podfile 吗?我可以通过做其他事情来解决这个问题吗?感谢任何能帮助我的人。
在终端中,运行 pod install
在你的项目目录中,应该没问题。
清除派生数据。然后尝试 运行 pod install 并构建应用程序。