迦太基Xcode 9错误

时间:2017-11-14 07:49:56

标签: ios swift xcode frameworks carthage

我尝试在我的项目中安装Carthage,但它在启动时总是崩溃。

没有什么比我尝试过的更好......

错误:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.css" rel="stylesheet" />
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" />

<label for="">start</label>
<input type="text" class="form-control" id="dateStart" name="start">
<label for="">end</label>
<input type="text" class="form-control" id="dateEnd" name="end">
<label for="">night</label>
<select name="night" id="night" class="form-control passenger">
  <option selected="selected" value=1>1 night</option>
  <option value=2>2 night</option>
  <option value=3>3 night</option>
  <option value=4>4 night</option>
  <option value=5>5 night</option>
  <option value=6>6 night</option>
  <option value=7>7 night</option>
  <option value=8>8 night</option>
</select>

迦太基文件夹:

enter image description here

链接的框架和库: enter image description here

运行脚本: enter image description here

复制文件: enter image description here

我还尝试在嵌入式二进制文件中设置框架。

谢谢。

编辑:Cartfile文件: enter image description here

1 个答案:

答案 0 :(得分:3)

Swift 3

如果您无法将代码移植到Swift 4,以下是可能的解决方法:

1.在你的主项目中,拖放里面的Starscream.xcodeproj文件:

Carthage/Checkouts/socket.io-client-swift/Source/Starscream

2.在“链接的框架和库”部分中添加了框架StarscreamSocketIO.framework

3.编译并运行

Swift 4

socket.io v11有一个迦太基的错误: github.com/socketio/socket.io-client-swift/issues/787 虽然可以通过一些手动变通方法修复它,但我建议您升级到最新的socket.io v13