小编sri*_*gde的帖子

从 github 打开 react-native 项目时构建失败

我已经从 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 …

react-native

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

在swift4中使按钮变为圆形

我从Storyboard中添加了一些按钮(不是通过代码)。我想把它做成圆形。我该怎么做?我不想从代码中添加一个圆形按钮,而是从情节提要中添加一个圆形按钮。

xcode uibutton uistoryboard swift4 ios11

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

在xcode7,Swift2中导入Contacts Framework

我试图将联系人框架导入我的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

frameworks ios9 swift2 xcode7-beta4

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

xcode7 swift2中的CNContactPickerViewController()

如何在xcode7 swift中使用CNContactPickerViewController(),我应该导入ContactsUI框架,我不确定,基本上我想在按下按钮时显示ContactPickerViewController.

注意:如果你们在swift或objective-c中知道在AddressBookUI框架中知道上述内容的等价物请帮助分享它我将修改它以使其在ContactsUI Framework中工作,我会发布它以便它对其他人有用在未来

contacts addressbook ios9 xcode7 swift2

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

通过 javascript 点击时触发 CSS 动画

我有一个简单的汉堡包图标,我想通过纯 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)

html javascript css css-animations

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

替代swift中的主要功能?

我在Playground玩耍而且我想知道主要功能在哪里与其他语言不同,Swift没有主要功能,什么是替代或技术用于替换swift中的主要功能,当在Apple之外的架构中使用时(在外面使用时) of ios和osx)因为swift很快将成为opensource?

program-entry-point swift swift-playground

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