错误 小结

1、XCode Missing private key

打包上传的时候提示Missing private key
解决方法:

Xcode->Preference ->账号管理里右下角选Manage Certificates
-> 左下角+号添加Apple Distribution

错误 小结_第1张图片
image.png
错误 小结_第2张图片
image.png

一、
1)Showing All Messages
:-1: Multiple commands produce '/Users/xxxx/Library/Developer/Xcode/DerivedData/xxx-aigduufqyiaiephlgpeemsvsfivi/Build/Products/Debug-iphoneos/xxx.app/Info.plist':

  1. Target 'xxx' (project 'xxx') has copy command from '/Users/sss/Documents/IPCamera_iOS/xxx/xxx/Other/MJExtension/Info.plist' to '/Users/xxx/Library/Developer/Xcode/DerivedData/xxx-aigduufqyiaiephlgpeemsvsfivi/Build/Products/Debug-iphoneos/xxx.app/Info.plist'
  2. Target 'xxx' (project 'xxx') has process command with output '/Users/sss/Library/Developer/Xcode/DerivedData/xxx-aigduufqyiaiephlgpeemsvsfivi/Build/Products/Debug-iphoneos/xxx.app/Info.plist'

解决方案:根据提示信息,选中对应的target-> Build Phases -> Copy Bundle Resource -> 移除报错里对应的Info.plist

错误 小结_第3张图片
image.png

Showing All Messages
:-1: Multiple commands produce '/Users/sss/Library/Developer/Xcode/DerivedData/LeTu-drupbietihyyuwazslugdwijnchw/Build/Products/Debug-iphoneos/LeTu.app/RedpacketCellResource.bundle':

  1. Target 'LeTu' (project 'LeTu') has copy command from '/Users/xxx/Desktop/LeTu/LeTu/ThirdLib/Redpacket/RedpacketCellResource.bundle' to '/Users/xxxx/Library/Developer/Xcode/DerivedData/LeTu-drupbietihyyuwazslugdwijnchw/Build/Products/Debug-iphoneos/LeTu.app/RedpacketCellResource.bundle'
  2. Target 'LeTu' (project 'LeTu') has copy command from '/Users/xxx/Desktop/LeTu/LeTu/ThirdLib/Redpacket/RedpacketStaticLib/RedpacketCellResource.bundle' to '/Users/xxx/Library/Developer/Xcode/DerivedData/LeTu-drupbietihyyuwazslugdwijnchw/Build/Products/Debug-iphoneos/LeTu.app/RedpacketCellResource.bundle'

同1),将冲突的文件删掉,在工程里找到同名的相同文件,


错误 小结_第4张图片
image.png

将重复文件删掉。

二、在用Instruments 测试程序的时候.
Permission to debug com.andon.eCamera.DEV was denied. The app must be signed with a development identity (e.g. iOS Developer).


错误 小结_第5张图片
image.png

解决方法:这里修改Profile 为debug模式.

三、Swap file ".podfile.swp" already exists!

创建 podfile 时 进入编辑模式没有正常退出 再次进行 vim Podfile 时报错误:Swap file ".podfile.swp" already exists!

解决办法 :

1. cd 到当前目录
2. ls -a (查看当前目录下的文件,找到要编辑的文件同名的.swp文件)
3. rm .*.swp,(*为文件名)
4. 在进行 vim Podfile 命令即可

4、
(UICollectionReusableView *)collectionView:(UICollectionView *)collectionView viewForSupplementaryElementOfKind:(NSString *)kind atIndexPath:(NSIndexPath *)indexPath 自定义collectionView之后此方法不执行

UICollectionViewFlowLayout *flowLayout = [[UICollectionViewFlowLayout alloc]init];
    flowLayout.minimumLineSpacing = 5;
    flowLayout.headerReferenceSize = CGSizeMake(screenW, 30);//头部

5、[UICachedDeviceWhiteColor renderingMode]: unrecognized selector sent to instance 0x281e7c8d0

细节错误
NSForegroundColorAttributeName错误写成了NSFontAttributeName

[rightTextField setAttributedPlaceholder:[[NSAttributedString alloc]initWithString:@"您的其他要求" attributes:@{NSFontAttributeName:[UIColor colorWithHexString:@"#999999"]}]];

正确写法:

[rightTextField setAttributedPlaceholder:[[NSAttributedString alloc]initWithString:@"您的其他要求" attributes:@{NSForegroundColorAttributeName:[UIColor colorWithHexString:@"#999999"]}]];

你可能感兴趣的:(错误 小结)