更新时间:2023-10-20 21:12:22
我发现是问题所在,是在Info.plist文件中,可执行文件(CFBundleExecutable)硬编码为"MyAppName".当我更改项目"名称,目标"名称和方案"名称时,此硬编码值未更改,但仍具有原始应用程序名称.
What I discovered to be the problem, was that in the Info.plist file the Executable File (CFBundleExecutable) was hard coded as "MyAppName". When I changed the Project name and Target name and Scheme name, this hardcoded value was not changed, but still had the original app name in it.
因此,我将Info.plist文件中的可执行文件(CFBundleExecutable)更改为此常量:
So I changed Executable File (CFBundleExecutable) in the Info.plist file to be this constant:
${EXECUTABLE_NAME}
问题解决了:)
我在另一个项目上再次发生了问题,但是以上内容已经设置为$ {EXECUTABLE_NAME}.
I had the problem occur again on a different project, however the above was already set to ${EXECUTABLE_NAME}.
所以我继续搜索,发现Build Settings > Build Options > Compiler for C/C++/Objective-C
下的设置为UNSUPPORTED
.
So I went searching and found that under Build Settings > Build Options > Compiler for C/C++/Objective-C
was set to UNSUPPORTED
.
我将此设置更改为DEFAULT
,问题已解决:)
I changed this setting to DEFAULT
and the problem was solved :)
我又遇到了问题,以上两点都没有解决.
I had the problem occur again and the above two things did not fix it.
因此,我去确保从任何Target Membership
中都删除了(未选中)info.plist,这解决了问题.似乎有多种原因会导致此问题,因此请尝试所有解决方案!
So I went and made sure that the info.plist was removed (unticked) from any Target Membership
, and this solved the problem. It seems that there are multiple things that will cause this issue, so try all the solutions!