bug 调试记录 以及常见问题解决

 1、[DYMTLInitPlatform] platform initialization successful
 App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file.
SecooDistributionSeller was compiled with optimization - stepping may behave oddly; variables may not be available.
 SecooDistributionSeller[38616:5325199] Metal GPU Frame Capture Enabled
 SecooDistributionSeller[38616:5325199] Metal API Validation Enabled
这个问题是必须切换到debug 版本,只有dubug才能调试,realease版本不能打印。(nslog)

2、模拟器上面不跑

可以点击模拟器----reset  content 进行设置

 

3、Xcode7中 directory not found for option 'xxxx' 

通过搜索library search paths解决

4、 [self.tableviewreloadSections:[NSIndexSetindexSetWithIndex:1] withRowAnimation:UITableViewRowAnimationNone];

reason: 'attempt to delete section 1, but there are only 1 sections before the update'

可以在此之前reload ,因为刷新之前要删除,本来就没有,你更新个毛线

5、

cocoapods diff: /../Podfile.lock: No such file or directory

在工程设置中的Build Phases下删除Check Pods Manifest.lock及Copy Pods Resources

https://www.jianshu.com/p/552f21a989ba

这个方案还是太复杂,可以找到一个更简单的方案

6、xcode 写代码突然不能用检索了

 

1、客户端项目突然不能使用检索方法了

解决方法:

Code completion 自动补全

 

I am using Xcode Version 8.2.1 (8C1002).

  1. Go to Xcode > Preferences > Text Editing
  2. Under Code completion - Uncheck 'Suggest completions while typing'
  3. Quit out of Xcode and then relaunch Xcode.
  4. Go to Xcode > Preferences > Text Editing again
  5. Quit out of Xcode and then relaunch Xcode.
  6. Now go to Code completion and check 'Suggest completions while typing'.
  7. Try typing library function or enum and enjoy!

At least, it worked for me.

这个方面我有效

7、微信的demo配置了证书,跑不动,怎么解决

bug 调试记录 以及常见问题解决_第1张图片

解决方法:我配置为公司的证书后,问题还在的,然后是解决路径:

building setting -- 搜索62a1937d*****后,删除这些配置,问题就好了。

你可能感兴趣的:(iOS,开发)