这是我尝试构建应用程序时遇到的错误。
ld:架构 arm64 的 10 个重复符号
Your project twice referring to file SetLockViewController.m
.
My suggestion is take a copy of class out side of your project.
[1] Then right click on SetLockViewController.m
file and delete > move to trash.
[2] Go to project files directory in finder. Then delete the file SetLockViewController.m
(if you find any).
[3] Clean the build and run.
Follow same method if any other duplicate files/linker errors present.
请检查项目的每个类中的所有变量名称,并确保它们都具有唯一的名称,包括类外
从错误中,我猜想:
你有两个文件,VaultSelectionViewController.m
并且SetLockViewController.m
(第一个最初是第二个的副本,可能)
它们都包含@implementation SetLockViewController
, 和相同的属性和/或方法和/或实例变量。
解决方法:修复类名中@implementation
的文件名。
如果这不是问题,请提供两个文件的相关部分。