file not found app文件
2024-10-12 12:50:05
昨天svn迁移。然后又一次check out之后编译遇到这个错误。
Ld Build/Products/Debug-iphonesimulator/wiseCloudCrmTests.xctest/wiseCloudCrmTests normal x86_64
cd /Users/zhangsuya/Desktop/root/trunk
export IPHONEOS_DEPLOYMENT_TARGET=7.1
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -bundle -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk -L/Users/zhangsuya/Desktop/root/trunk/Build/Products/Debug-iphonesimulator -F/Users/zhangsuya/Desktop/root/trunk/Build/Products/Debug-iphonesimulator -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/Developer/Library/Frameworks -F/Applications/Xcode.app/Contents/Developer/Library/Frameworks -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/Developer/Library/Frameworks -filelist /Users/zhangsuya/Desktop/root/trunk/Build/Intermediates/wiseCloudCrm.build/Debug-iphonesimulator/wiseCloudCrmTests.build/Objects-normal/x86_64/wiseCloudCrmTests.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -bundle_loader /Users/zhangsuya/Desktop/root/trunk/Build/Products/Debug-iphonesimulator/wiseCloudCrm.app/wiseCloudCrm -Xlinker -objc_abi_version -Xlinker 2 -framework XCTest -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=7.1 -framework XCTest -framework UIKit -framework Foundation -Xlinker -dependency_info -Xlinker /Users/zhangsuya/Desktop/root/trunk/Build/Intermediates/wiseCloudCrm.build/Debug-iphonesimulator/wiseCloudCrmTests.build/Objects-normal/x86_64/wiseCloudCrmTests_dependency_info.dat -o /Users/zhangsuya/Desktop/root/trunk/Build/Products/Debug-iphonesimulator/wiseCloudCrmTests.xctest/wiseCloudCrmTests ld: file not found: /Users/zhangsuya/Desktop/root/trunk/Build/Products/Debug-iphonesimulator/wiseCloudCrm.app/wiseCloudCrm
clang: error: linker command failed with exit code 1 (use -v to see invocation)
从来没遇到过,直接蒙圈了......(一大堆看不到的提示)。
琢磨良久方才get到重点:
ld: file not found: /Users/zhangsuya/Desktop/root/trunk/Build/Products/Debug-iphonesimulator/wiseCloudCrm.app/wiseCloudCrm
这句话的意思是编译器想找到这个文件却没找到。
进入
/Users/zhangsuya/Desktop/root/trunk/Build/Products/Debug-iphonesimulator/目录下查看发现并没有wiseCloudCrm而是
watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvaml1c2hpamllMTIwNw==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" alt="">
app文件由原来英文wiseCloudCrm变成了 沟通汇
再去target下查看product name果然变成了沟通汇。问同事才知道是他改的名字(....不早说),
我把product name改为wiseCloudCrm然后点击工具栏上的product下的clean再编译正确。
同一时候又一个问题来了。即使他改了product name后他的能编译通过,而提交我更新后我的却编译不通过。原因是什么呢?
原因应该就是他没有clean。
(感兴趣的同学能够试一下)。
最新文章
- Tomcat笔记
- extentreports报告插件之extentX之服务搭建(三)
- 深入浅出 - Android系统移植与平台开发(十) - led HAL简单设计案例分析
- 4通用Makefile编写
- ASP流程控制语句
- Oracle集合操作函数:Union、Union All、Intersect、Minus
- 浅谈CSS3 box-reflect 属性
- iOS SnapKit自动布局使用详解
- 【转】iOS 9 Storyboard 教程(一上)
- Spring学习之路二——概念上理解Spring
- 新装的Linux服务系统安装MySQL
- 去除html标记和替换script标记
- ffmpeg的使用说明
- ios ionic3 跳转第三方地图 xcode加入白名单
- fiddler近期用到的一些新功能
- HOMEWORD2
- [,,].length等于几
- 理解 vm.$nextTick
- hdu 4349 Xiao Ming's Hope 规律
- 遍历存储所有物体添加到列表中(使用GameObject.activeSelf进行判断)
热门文章
- Django一些开发经验
- 详解Python中的__init__和__new__(静态方法)
- Django配置参数可选总结
- MongoDB 进阶
- 01-学前入门VS各个组成部分
- sublime插件FileHeader使用,自动的添加模板
- 在Eclipse中修改web项目的名称
- [LOJ2541][PKUWC2018]猎人杀(容斥+分治+FFT)
- LOJ P3960 列队 树状数组 vector
- bzoj 4627: [BeiJing2016]回转寿司 -- 权值线段树