我刚刚从<html>
<head>
<script type="text/javascript" src="https://code.jquery.com/jquery-1.8.3.min.js"></script>
<script>
$(document).ready(function() {
$("#invia").click(function(e) {
e.preventDefault();
if (!confirm('Are you sure?')) {
return false;
}
// Now you're getting the data in the form to send as object
let fbvideo = $("#videolink").parent().serialize();
// Better if you give it an id or a class to identify it
let formAction = $("#videolink").parent().attr('action');
// If you need any additional value that's not as input in the form
// fbvideo += '&item' + value;
$.ajax({
type: 'POST',
data: fbvideo ,
cache: false,
// dataType: "html",
// url optional in this case
// url: formAction,
success: function(test){
alert(test);
}
});
});
});
</script>
</head>
<body>
<div style="position:relative; margin-top:2000px;">
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
<input id="videolink" type="text" name="fblink" style="width:500px;">
<br>
<input id="invia" type="submit" name="send" value="Get Link!">
</form>
</div>
</body>
升级到Swift 3
。我正在使用2.2
,Firebase
,Google Maps
,Google Places
,SwiftyJSON
和Alamofire 4.4
。我重新安装了所有SDWebImage
,运行pods
,并修复了除此之外的所有错误:
ld:找不到框架GoogleInterchangeUtilities clang:
错误:链接器命令失败,退出代码为1(使用-v查看 调用)
(null):找不到框架 GoogleInterchangeUtilities
(null):链接器命令失败,退出代码为1(使用-v查看 调用)
我在哪里可以找到git commit
以及如何安装或修复它?
答案 0 :(得分:8)
当我从Swift 2.2
升级到Swift 3
时,我做的第一件事就是清理并移除cocoapods
:
pod deintegrate
pod clean
pod cache clean --all
rm Podfile
出于某种原因,当我重新安装我原来拥有的所有pod时,GoogleInterchangeUtilities
文件加上其他几个文件在此过程中被删除了:
Analyzing dependencies
Removing GoogleInterchangeUtilities //**REMOVED**
Removing GoogleNetworkingUtilities //**REMOVED**
Removing GoogleParsingUtilities //**REMOVED**
Removing GoogleSymbolUtilities //**REMOVED**
Removing GoogleUtilities //**REMOVED**
Downloading dependencies
Installing Alamofire 3.5.1 (was 3.4.1)
Installing Firebase 3.15.0 (was 3.3.0)
Installing FirebaseAnalytics 3.7.0 (was 3.2.1)
Installing FirebaseAuth 3.1.1 (was 3.0.3)
Installing FirebaseCore (3.5.2)
Installing FirebaseCrash 1.1.6 (was 1.0.6)
Installing FirebaseDatabase 3.1.2 (was 3.0.2)
Installing FirebaseDynamicLinks 1.3.4 (was 1.1.0)
Installing FirebaseInstanceID 1.0.9 (was 1.0.7)
Installing FirebaseStorage 1.1.0 (was 1.0.2)
Installing GTMSessionFetcher (1.1.9)
Installing GoogleMaps 2.2.0 (was 1.13.2)
Using GooglePlacesAPI (1.0.6)
Installing GoogleToolboxForMac (2.1.1)
Installing ObjectMapper 1.5.0 (was 1.3.0)
Installing Protobuf (3.2.0)
Using SDWebImage (3.8.2)
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There are 10 dependencies from the Podfile and 17 total pods installed.
我最终去了谷歌并输入GoogleInterchangeUtilities
,这导致我进入了它的pod安装页面here。我重新安装了删除错误的pod,但之后删除的其他每个文件都导致了他们自己的ld: framework not found...
Xcode错误。
如果您清理并删除了cocoapods文件并重新安装了所有内容,那么很长一段时间,Google...Utilities
框架可能会被删除。您必须将这些特定的单个pod重新包含在pod文件中,然后再次运行pod install
。
这是我的pod文件,除了我的所有其他pod之外还包含它们:
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'myProject' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for myProject
pod 'GoogleInterchangeUtilities', '~> 1.2'
pod 'GoogleNetworkingUtilities', '~> 1.2'
pod 'GoogleParsingUtilities', '~> 1.1'
pod 'GoogleSymbolUtilities', '~> 1.1'
pod 'GoogleUtilities', '~> 1.3'
//all my other pods...
以下是他们的cocoapods安装页面: