尝试用AI帮自己写代码
时隔多年,
再次装回Xcode(成功),并想重新激活苹果开发者账号(失败)
如果不是大模型爆发,我大概这辈子都不会碰代码了。
如果不是大模型爆发,我也不会幻想自己写一个app吧。
--------
昨晚装好了Trae,装好了Xcode
做一个照片快速编辑器:
1. 它是一个iPhone上运行的APP,最好用swift语言编写
2. 它是一个本地APP,无需联网
3. 它读取iPhone的照片
4. 功能是:
(1)用户可以选择iPhone上的任何照片,给它加上白色边框。
(2)用户可以选择iPhone上的任何照片,给它加上白色边框,并在边框底部写上照片的HEIF信息
结果,折腾到半夜,还是在跟Info.plist斗智斗勇。
跟Trae互道晚安,明日再战吧!
-------------
昨晚整个编译的过程,反复报错如下:
Multiple commands produce '/Users/yangfan/Library/Developer/Xcode/DerivedData/PhotoFramer-byyoevczjqscrcgobhvgpuiofect/Build/Products/Debug-iphonesimulator/PhotoFramer.app/Info.plist'
Target 'PhotoFramer' (project 'PhotoFramer') has copy command from '/Users/yangfan/Documents/Program/PhotoFramer/PhotoFramer/PhotoFramer/Info.plist' to '/Users/yangfan/Library/Developer/Xcode/DerivedData/PhotoFramer-byyoevczjqscrcgobhvgpuiofect/Build/Products/Debug-iphonesimulator/PhotoFramer.app/Info.plist'
Target 'PhotoFramer' (project 'PhotoFramer') has process command with output '/Users/yangfan/Library/Developer/Xcode/DerivedData/PhotoFramer-byyoevczjqscrcgobhvgpuiofect/Build/Products/Debug-iphonesimulator/PhotoFramer.app/Info.plist'
Trae教了我N种配置方法,改了不知道多少遍,依然没有解决。
今天白天,左想右想,发现哪里不对。刚才酒后回家(23:40),没有按照Trae的建议,这样改了文件,编译通过了!
方法非常简单:
在Build Phases-Copy Bundle Resources中,删掉不存在的Info.plist即可!
铛铛铛铛!
评论
发表评论