我已经从 github 下载了 react-native 项目。链接在这里
我做了 npm 安装。到目前为止一切都很好。当我运行 react-native run-ios 时,出现以下错误
命令行中的用户默认值:IDEDerivedDataPathOverride = /Users/sriram/Desktop/FirebaseAuth-master/ios/build/Auth
注意:使用新构建系统注意:规划构建注意:构建构建描述构建系统信息错误:/Users/sriram/Desktop/FirebaseAuth-master/ios/Pods/Target Support Files/Pods-Auth/Pods-Auth.debug.xcconfig :无法打开文件(在项目“Auth”中的目标“Auth”中)(在目标“Auth”中)
构建系统信息错误:/Users/sriram/Desktop/FirebaseAuth-master/ios/Pods/Target Support Files/Pods-Auth/Pods-Auth.debug.xcconfig:无法打开文件(在项目“Auth”中的目标“Auth”中) ")(在目标 'Auth' 中)
构建系统信息错误:/Users/sriram/Desktop/FirebaseAuth-master/ios/Pods/Target Support Files/Pods-Auth/Pods-Auth.debug.xcconfig:无法打开文件(在项目“Auth”中的目标“Auth”中) ")(在目标 'Auth' 中)
构建系统信息错误:/Users/sriram/Desktop/FirebaseAuth-master/ios/Pods/Target Support Files/Pods-Auth/Pods-Auth.debug.xcconfig:无法打开文件(在项目“Auth”中的目标“Auth”中) ")(在目标 'Auth' 中)
构建系统信息错误:/Users/sriram/Desktop/FirebaseAuth-master/ios/Pods/Target Support Files/Pods-AuthTests/Pods-AuthTests.debug.xcconfig:无法打开文件(在项目“Auth”中的目标“AuthTests”中) ")(在目标 'AuthTests' 中)
构建系统信息错误:/Users/sriram/Desktop/FirebaseAuth-master/ios/Pods/Target Support Files/Pods-AuthTests/Pods-AuthTests.debug.xcconfig:无法打开文件(在项目“Auth”中的目标“AuthTests”中) ")(在目标 'AuthTests' 中)
构建系统信息错误:/Users/sriram/Desktop/FirebaseAuth-master/ios/Pods/Target Support Files/Pods-AuthTests/Pods-AuthTests.debug.xcconfig:无法打开文件(在项目“Auth”中的目标“AuthTests”中) ")(在目标 'AuthTests' 中)
构建系统信息错误:/Users/sriram/Desktop/FirebaseAuth-master/ios/Pods/Target Support Files/Pods-AuthTests/Pods-AuthTests.debug.xcconfig:无法打开文件(在项目“Auth”中的目标“AuthTests”中) ")(在目标 'AuthTests' 中)
** 构建失败 **
后来我尝试了cd ios && pod install
之后我尝试了react-native run-ios,我得到以下错误:以下构建命令失败:CompileC /Users/sriram/Desktop/Auth/ios/build/Auth/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DoubleConversion .build/Objects-normal/x86_64/DoubleConversion-dummy.o Target\ Support\ Files/DoubleConversion/DoubleConversion-dummy.m normal …
我从Storyboard中添加了一些按钮(不是通过代码)。我想把它做成圆形。我该怎么做?我不想从代码中添加一个圆形按钮,而是从情节提要中添加一个圆形按钮。
我试图将联系人框架导入我的xcode7,我已经从构建阶段添加了联系人框架,我已经声明了
import UIKit
import Contacts
Run Code Online (Sandbox Code Playgroud)
但它显示错误说 /Users/anonymous/Desktop/Contacts/Contacts/ViewController.swift:10:8: Cannot import module being compiled
如何在xcode7 swift中使用CNContactPickerViewController(),我应该导入ContactsUI框架,我不确定,基本上我想在按下按钮时显示ContactPickerViewController.
注意:如果你们在swift或objective-c中知道在AddressBookUI框架中知道上述内容的等价物请帮助分享它我将修改它以使其在ContactsUI Framework中工作,我会发布它以便它对其他人有用在未来
我有一个简单的汉堡包图标,我想通过纯 javascript 点击时触发 CSS 动画(请不要使用 jquery)。我通过在汉堡包图标上添加和删除一个类来做到这一点,当我添加该类时,CSS 动画正在发生,但是当我删除该类时,动画没有发生,汉堡包线突然返回而没有动画。基本上我希望动画反转并回到原始位置。
这是代码:
var hamburgerMenu = document.querySelector('.hamburger-menu');
hamburgerMenu.addEventListener('click', function() {
var hamburgerMenuSpan2 = document.querySelector('.hamburger-second');
hamburgerMenuSpan2.classList.toggle('hamburger-line-2');
});Run Code Online (Sandbox Code Playgroud)
.hamburger-menu {
position: absolute;
top: 20px;
right: 20px;
}
.hamburger-line-2 {
animation-name: animate;
animation-duration: 3s;
animation-timing-function: ease-in-out;
animation-fill-mode: forwards;
animation-direction: alternate;
}
@keyframes animate {
0% {
width: 40px;
}
100% {
width: 0px;
}
}
.hamburger-menu span {
display: block;
width: 40px;
height: 2px;
background: black;
margin: 10px 0px;
}Run Code Online (Sandbox Code Playgroud)
<div class="hamburger-menu">
<span class="hamburger-line-1"></span>
<span class="hamburger-second"></span>
<span class="hamburger-line-3"></span> …Run Code Online (Sandbox Code Playgroud)我在Playground玩耍而且我想知道主要功能在哪里与其他语言不同,Swift没有主要功能,什么是替代或技术用于替换swift中的主要功能,当在Apple之外的架构中使用时(在外面使用时) of ios和osx)因为swift很快将成为opensource?
ios9 ×2
swift2 ×2
addressbook ×1
contacts ×1
css ×1
frameworks ×1
html ×1
ios11 ×1
javascript ×1
react-native ×1
swift ×1
swift4 ×1
uibutton ×1
uistoryboard ×1
xcode ×1
xcode7 ×1
xcode7-beta4 ×1