小编Nis*_*mad的帖子

高山脉的cocoapods许可问题?

我将我的macOS更新到High Sierra,现在通过我的iOS应用程序中的cocoapods安装依赖项.但我面临以下错误.

XXXXXXXXX:MyProject CompanyName$ pod update 
-bash: /usr/local/bin/pod: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby: bad interpreter: No such file or directory
Run Code Online (Sandbox Code Playgroud)

比我试过

 Zubair-mac-mini:~ sdsol$ gem install cocoapods

 ERROR:  While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.3.0 directory.
Zubair-mac-mini:~ sdsol$
Run Code Online (Sandbox Code Playgroud)

任何帮助将不胜感激.

ruby rubygems cocoapods macos-high-sierra

13
推荐指数
2
解决办法
8104
查看次数

如何更改AVPlayer Live Streaming URL?

嗨开发人员和专家,我需要你的好建议和帮助.我正在使用一个具有四个不同无线电频道(按钮)的应用程序.我正在使用AVPlayer进行直播.我想在ViewDidLoad中创建一个AVPlayer对象,只需使用四个不同的按钮更改流式URL,而无需一次又一次地重新创建AVPlayer对象.我用Google搜索但没有找到任何解决方案.所以你的好建议和帮助将不胜感激.谢谢

- (IBAction)playBtn_clicked:(id)sender {

     NSURL *streamURL = [NSURL URLWithString:urlString];

    // I don't like this line, creating a new object again and again
    _streamPlayer = [[AVPlayer alloc] initWithURL:streamURL]; 

    if (_streamPlayer.rate == 1.0) {
        [_streamPlayer pause];
    } else {
        [_streamPlayer play];
    }
}
Run Code Online (Sandbox Code Playgroud)

objective-c audio-streaming live-streaming ios avplayer

6
推荐指数
2
解决办法
5635
查看次数

RVM错误在High Sierra上安装ruby 2.3.0

在将所有Pod命令(例如Pod安装,Pod更新)停止工作之后,我将macOS更新为High Sierra。谷歌搜索后,我建议将您的红宝石从2.0更新到2.3.0。但是使用rvm命令面临以下错误。

 Zubair-mac-mini:~ sdsol$ rvm install 2.3.0

 Searching for binary rubies, this might take some time.
 No binary rubies available for: osx/10.13/x86_64/ruby-2.3.0.
 Continuing with compilation. Please read 'rvm help mount' to get more 
 information on binary rubies.
 Checking requirements for osx.
 Installing requirements for osx.
 Updating system.........Failed to update Homebrew, follow instructions 
 here:
 https://github.com/Homebrew/homebrew/wiki/Common-Issues
 and make sure `brew update` works before continuing.
 ..
 Error running 'requirements_osx_brew_update_system ruby-2.3.0',
 please read /Users/sdsol/.rvm/log/1506680323_ruby-2.3.0/update_system.log
 Requirements installation failed with status: 1.
 Zubair-mac-mini:~ sdsol$ 
Run Code Online (Sandbox Code Playgroud)

比我尝试更新自制软件,但是再没有运气会遇到另一个问题

 Zubair-mac-mini:~ …
Run Code Online (Sandbox Code Playgroud)

ruby rubygems rvm cocoapods

5
推荐指数
0
解决办法
1432
查看次数

在iOS中使用AVFoundation Framework的相机视频帧?

我从未使用过AVFoundation Framework,我想从后置摄像头获取视频帧并使用这些帧进行处理.任何人帮助我,您的经验将不胜感激.谢谢

objective-c video-processing avfoundation ios

3
推荐指数
1
解决办法
2384
查看次数

Objective-C中的函数重载?

根据我的理解,C专家Objective-C是一种动态绑定语言,不允许重载类中的任何方法.

但是,如果我编写两个具有相同名称但不同数量的参数列表的方法,有一件事让我恼火:

 // Which is not allowed in objective-c

 -(void)updateValue:(int)intVal{

  } 

 -(void)updateValue:(float)floatVal{

  }
Run Code Online (Sandbox Code Playgroud)

但Objective-C允许的第二种情况是:

 // Allowed in Objective-C

 -(void)updateValue:(int)intVal{

   }

 -(void)updateValue:(float)floatVal :(int)intVal{

   }
Run Code Online (Sandbox Code Playgroud)

虽然两种情况都是方法重载.

现在我的问题是为什么允许第二种情况.

在第二种情况下使用两个参数的方法是否更改了方法名称?或者是其他东西 ?

请解释一下.

overloading objective-c dynamic-binding ios

1
推荐指数
1
解决办法
398
查看次数

HTML5音频无法在UIWebView iOS上播放?

我正在开发一个iOS应用程序,我想在UIWebView上加载一个URL,这是一个HTML页面,有多个按钮,如视频,音频,链接等.当我点击视频或链接其工作正常但不播放音频,但在浏览器上正常工作.这是链接.

http://dotwapp.com/live-media-ar-latest-new/pages/template_new/select_templete.php?app_id=5&target_file=530897219_1446543407_1114783040.png&p_id=&video=&audio=1693670338_1446543407_832353985.mp4&image=1872962265_1446543407_518980357.png&bg_image=&link=http: //w3schools.com&v_link=

任何帮助将不胜感激 .

audio html5 objective-c uiwebview ios

-1
推荐指数
1
解决办法
4581
查看次数