AVAudioPlayer
使用AVAudioPlayer播放本地音乐的时候,是否没有声音没有什么反应?试一试把AVAudioPlayer作为全局变量 O(∩_∩)O哈哈~- pod 报错:
/Users/xxx/.rvm/gems/ruby-2.4.0/gems/cocoapods-1.2.1/lib/cocoapods/command.rb:129:in `verify_minimum_git_version!': [!] You need at least git version 1.8.5 to use CocoaPods (Pod::Informative)
from /Users/xxx/.rvm/gems/ruby-2.4.0/gems/cocoapods-1.2.1/lib/cocoapods/command.rb:49:in `run'
from /Users/xxx/.rvm/gems/ruby-2.4.0/gems/cocoapods-1.2.1/bin/pod:55:in `<top (required)>'
from /Users/xxx/.rvm/gems/ruby-2.4.0/bin/pod:23:in `load'
from /Users/xxx/.rvm/gems/ruby-2.4.0/bin/pod:23:in `<main>'
from /Users/xxx/.rvm/gems/ruby-2.4.0/bin/ruby_executable_hooks:15:in `eval'
from /Users/xxx/.rvm/gems/ruby-2.4.0/bin/ruby_executable_hooks:15:in `<main>'
经查阅,1.有人说是xcode版本太低,需要升级xcode
2.可我是最新的版本,可能跟我之前有两个一毛一样的xcode(为了安装插件,修改其中一个xcode的签名, 虽然后来还是给卸掉了)有关系,用命令指定xcode路径 – sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
,就解决了。
- This application’s application-identifier entitlement does not match that of the installed application. These values must match for an upgrade to be allowed.
<— 卸掉真机上的程序重新运行>
4.TableViewHeaderView在iOS8.0下显示不全
解决方法:1.将tableView.headerView = HeaderView写在 viewWillAppear方法里
2.Nib文件里的自带的View删除 自己重新添加
【摘自http://www.jianshu.com/p/4e809c19a27e 亲测有效】