我们目前正在 IOS 和 Android 上无线部署一个新的应用程序,android 可以通过一个简单的链接在互联网上下载一个 apk 没有问题,但是在 IOS 上我们目前遇到了一个问题,当我们尝试从下载链接。 “无法连接到“domain.com””
我不知道出了什么问题:plist 和 ipa 都很好,我用我的浏览器检查了所有链接。
plist 和 ipa 的 MIME 类型是: plist:文本/xml ipa : 应用程序/八位字节流
https://端口自定义为8443 https://domain.com:8443/webapp/app.html
下载链接:
<p><a href="itms-services://?action=download-manifest&url=https://domain.com:8443/webapp/app.plist">DownLoad Iphone APP</a></p>
像这样的 plist 文件:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>items</key>
<array>
<dict>
<key>assets</key>
<array>
<dict>
<key>kind</key>
<string>software-package</string>
<key>url</key>
<string>https://domain.com:8443/webapp/app.ipa</string>
</dict>
</array>
<key>metadata</key>
<dict>
<key>bundle-identifier</key>
<string>com.app.myapp</string>
<key>bundle-version</key>
<string>1.3</string>
<key>kind</key>
<string>software</string>
<key>title</key>
<string>myapp</string>
</dict>
</dict>
</array>
</dict>
</plist>
我的网络服务器在一个运行良好的反向代理 nginx 后面(在反向代理和网络服务器之间有一个 8443 到 8080 的转换)等等。
当我尝试下载该应用程序时,反向代理的日志显示了这一点,我收到了一个 503 错误,但是所有获得 .ipa 的浏览器(如 chrome)都有一个 HTTP 响应 200 OK,但是当我点击我的下载时iphone 我在 nginx 日志上收到 503 错误:
2014/05/16 16:05:02 [debug] 7217#0: *18845 http script copy: "^M
"
2014/05/16 16:05:02 [debug] 7217#0: *18845 http script copy: ""
2014/05/16 16:05:02 [debug] 7217#0: *18845 http script copy: ""
2014/05/16 16:05:02 [debug] 7217#0: *18845 http proxy header: "Accept-Encoding: gzip, deflate"
2014/05/16 16:05:02 [debug] 7217#0: *18845 http proxy header: "User-Agent: itunesstored/1.0 iOS/7.1.1 model/iPhone3,1 build/11D201 (4; dt:27)"
2014/05/16 16:05:02 [debug] 7217#0: *18845 http proxy header: "Accept-Language: fr"
2014/05/16 16:05:02 [debug] 7217#0: *18845 http proxy header: "Accept: */*"
2014/05/16 16:05:02 [debug] 7217#0: *18845 http proxy header:
"GET /webapp/app.plist HTTP/1.1^M
Connection: upgrade^M
Accept-Encoding: gzip, deflate^M
User-Agent: itunesstored/1.0 iOS/7.1.1 model/iPhone3,1 build/11D201 (4; dt:27)^M
Accept-Language: fr^M
Accept: */*^M
^M
"
2014/05/16 16:05:02 [debug] 7217#0: *18845 http cleanup add: 0000000002149C20
2014/05/16 16:05:02 [debug] 7217#0: *18845 get rr peer, try: 1
2014/05/16 16:05:02 [debug] 7217#0: *18845 socket 14
2014/05/16 16:05:02 [debug] 7217#0: *18845 epoll add connection: fd:14 ev:80000005
2014/05/16 16:05:02 [debug] 7217#0: *18845 connect to 10.xx.xx.xxx:8080, fd:14 #18846
2014/05/16 16:05:02 [debug] 7217#0: *18845 http upstream connect: -2
2014/05/16 16:05:02 [debug] 7217#0: *18845 posix_memalign: 00000000020D2C20:128 @16
2014/05/16 16:05:02 [debug] 7217#0: *18845 event timer add: 14: 90000:1400249192473
2014/05/16 16:05:02 [debug] 7217#0: *18845 http finalize request: -4, "/webapp/app.plist?" a:1, c:2
2014/05/16 16:05:02 [debug] 7217#0: *18845 http request count:2 blk:0
2014/05/16 16:05:02 [debug] 7217#0: *18845 http run request: "/webapp/app.plist?"
2014/05/16 16:05:02 [debug] 7217#0: *18845 http upstream check client, write event:1, "/webapp/app.plist"
2014/05/16 16:05:02 [debug] 7217#0: *18845 http upstream recv(): -1 (11: Resource temporarily unavailable)
2014/05/16 16:05:02 [debug] 7217#0: *18845 http upstream request: "/webapp/app.plist?"
2014/05/16 16:05:02 [debug] 7217#0: *18845 http upstream send request handler
2014/05/16 16:05:02 [debug] 7217#0: *18845 http upstream send request
2014/05/16 16:05:02 [debug] 7217#0: *18845 chain writer buf fl:1 s:231
2014/05/16 16:05:02 [debug] 7217#0: *18845 chain writer in: 0000000002149C58
2014/05/16 16:05:02 [debug] 7217#0: *18845 writev: 231
2014/05/16 16:05:02 [debug] 7217#0: *18845 chain writer out: 0000000000000000
2014/05/16 16:05:02 [debug] 7217#0: *18845 event timer del: 14: 1400249192473
2014/05/16 16:05:02 [debug] 7217#0: *18845 event timer add: 14: 90000:1400249192474
2014/05/16 16:05:02 [debug] 7217#0: *18845 http upstream request: "/webapp/app.plist?"
2014/05/16 16:05:02 [debug] 7217#0: *18845 http upstream process header
2014/05/16 16:05:02 [debug] 7217#0: *18845 malloc: 000000000219B170:4096
2014/05/16 16:05:02 [debug] 7217#0: *18845 recv: fd:14 1038 of 4096
2014/05/16 16:05:02 [debug] 7217#0: *18845 http proxy status 503 "503 Service Unavailable"
2014/05/16 16:05:02 [debug] 7217#0: *18845 http proxy header: "Content-Type: text/html; charset=UTF-8"
2014/05/16 16:05:02 [debug] 7217#0: *18845 http proxy header: "Content-Length: 785"
2014/05/16 16:05:02 [debug] 7217#0: *18845 http proxy header: "Connection: close"
2014/05/16 16:05:02 [debug] 7217#0: *18845 http proxy header: "Expires: Thu, 19 Nov 1981 08:52:00 GMT"
2014/05/16 16:05:02 [debug] 7217#0: *18845 http proxy header: "Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0"
2014/05/16 16:05:02 [debug] 7217#0: *18845 http proxy header: "Pragma: no-cache"
2014/05/16 16:05:02 [debug] 7217#0: *18845 http proxy header done
2014/05/16 16:05:02 [debug] 7217#0: *18845 finalize http upstream request: 503
2014/05/16 16:05:02 [debug] 7217#0: *18845 finalize http proxy request
2014/05/16 16:05:02 [debug] 7217#0: *18845 free rr peer 1 0
最佳答案
我已经解决了这个问题,我需要向后端传递完整的 HTTPS,iphone 检测到不安全的内容并取消下载。
关于IOS 应用程序无线分发 : error when download can't connect to domain,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23697842/
我需要在客户计算机上运行Ruby应用程序。通常需要几天才能完成(复制大备份文件)。问题是如果启用sleep,它会中断应用程序。否则,计算机将持续运行数周,直到我下次访问为止。有什么方法可以防止执行期间休眠并让Windows在执行后休眠吗?欢迎任何疯狂的想法;-) 最佳答案 Here建议使用SetThreadExecutionStateWinAPI函数,使应用程序能够通知系统它正在使用中,从而防止系统在应用程序运行时进入休眠状态或关闭显示。像这样的东西:require'Win32API'ES_AWAYMODE_REQUIRED=0x0
我正在尝试测试是否存在表单。我是Rails新手。我的new.html.erb_spec.rb文件的内容是:require'spec_helper'describe"messages/new.html.erb"doit"shouldrendertheform"dorender'/messages/new.html.erb'reponse.shouldhave_form_putting_to(@message)with_submit_buttonendendView本身,new.html.erb,有代码:当我运行rspec时,它失败了:1)messages/new.html.erbshou
我在我的项目目录中完成了compasscreate.和compassinitrails。几个问题:我已将我的.sass文件放在public/stylesheets中。这是放置它们的正确位置吗?当我运行compasswatch时,它不会自动编译这些.sass文件。我必须手动指定文件:compasswatchpublic/stylesheets/myfile.sass等。如何让它自动运行?文件ie.css、print.css和screen.css已放在stylesheets/compiled。如何在编译后不让它们重新出现的情况下删除它们?我自己编译的.sass文件编译成compiled/t
对于具有离线功能的智能手机应用程序,我正在为Xml文件创建单向文本同步。我希望我的服务器将增量/差异(例如GNU差异补丁)发送到目标设备。这是计划:Time=0Server:hasversion_1ofXmlfile(~800kiB)Client:hasversion_1ofXmlfile(~800kiB)Time=1Server:hasversion_1andversion_2ofXmlfile(each~800kiB)computesdeltaoftheseversions(=patch)(~10kiB)sendspatchtoClient(~10kiBtransferred)Cl
Rackup通过Rack的默认处理程序成功运行任何Rack应用程序。例如:classRackAppdefcall(environment)['200',{'Content-Type'=>'text/html'},["Helloworld"]]endendrunRackApp.new但是当最后一行更改为使用Rack的内置CGI处理程序时,rackup给出“NoMethodErrorat/undefinedmethod`call'fornil:NilClass”:Rack::Handler::CGI.runRackApp.newRack的其他内置处理程序也提出了同样的反对意见。例如Rack
我想用ruby编写一个小的命令行实用程序并将其作为gem分发。我知道安装后,Guard、Sass和Thor等某些gem可以从命令行自行运行。为了让gem像二进制文件一样可用,我需要在我的gemspec中指定什么。 最佳答案 Gem::Specification.newdo|s|...s.executable='name_of_executable'...endhttp://docs.rubygems.org/read/chapter/20 关于ruby-在Ruby中编写命令行实用程序
我在我的项目中添加了一个系统来重置用户密码并通过电子邮件将密码发送给他,以防他忘记密码。昨天它运行良好(当我实现它时)。当我今天尝试启动服务器时,出现以下错误。=>BootingWEBrick=>Rails3.2.1applicationstartingindevelopmentonhttp://0.0.0.0:3000=>Callwith-dtodetach=>Ctrl-CtoshutdownserverExiting/Users/vinayshenoy/.rvm/gems/ruby-1.9.3-p0/gems/actionmailer-3.2.1/lib/action_mailer
我构建了两个需要相互通信和发送文件的Rails应用程序。例如,一个Rails应用程序会发送请求以查看其他应用程序数据库中的表。然后另一个应用程序将呈现该表的json并将其发回。我还希望一个应用程序将存储在其公共(public)目录中的文本文件发送到另一个应用程序的公共(public)目录。我从来没有做过这样的事情,所以我什至不知道从哪里开始。任何帮助,将不胜感激。谢谢! 最佳答案 无论Rails是什么,几乎所有Web应用程序都有您的要求,大多数现代Web应用程序都需要相互通信。但是有一个小小的理解需要你坚持下去,网站不应直接访问彼此
我尝试运行2.x应用程序。我使用rvm并为此应用程序设置其他版本的ruby:$rvmuseree-1.8.7-head我尝试运行服务器,然后出现很多错误:$script/serverNOTE:Gem.source_indexisdeprecated,useSpecification.Itwillberemovedonorafter2011-11-01.Gem.source_indexcalledfrom/Users/serg/rails_projects_terminal/work_proj/spohelp/config/../vendor/rails/railties/lib/r
在MRIRuby中我可以这样做:deftransferinternal_server=self.init_serverpid=forkdointernal_server.runend#Maketheserverprocessrunindependently.Process.detach(pid)internal_client=self.init_client#Dootherstuffwithconnectingtointernal_server...internal_client.post('somedata')ensure#KillserverProcess.kill('KILL',