小编Vin*_*les的帖子

AudioKit 4.1 Mach-O链接器错误Swift 4

我正在尝试使用AudioKit 4.1来学习基础教程.我首先在项目中导入了AudioKit框架,如下图所示.

在此输入图像描述

导入AudioKit框架后,我在ViewController中添加了几行代码,如下所示:

import UIKit
import AudioKit

class ViewController: UIViewController {

override func viewDidLoad() {
    super.viewDidLoad()
    // Do any additional setup after loading the view, typically from a nib.
    let oscillator = AKOscillator()
    oscillator.amplitude = 0.1
    AudioKit.output = oscillator
    oscillator.start()
}

override func didReceiveMemoryWarning() {
    super.didReceiveMemoryWarning()
    // Dispose of any resources that can be recreated.
}


}
Run Code Online (Sandbox Code Playgroud)

运行代码后,我得到59错误,如下图所示.你是如何解决的?

在此输入图像描述

ios audiokit swift4

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

React Native Debug 模式抛出错误,为什么会这样?

调试模式之前可以工作,但在我尝试再次运行它之后(两天后),抛出了一个错误:

这些文件都不存在: * debugger-ui/debuggerWorker.d9da4ed7(.native|.native.js|.js|.native.json|.json|.native.ts|.ts|.native.tsx|.tsx)

在调试模式下运行本机反应后。它还说本机模块不能为空。我该如何解决?我现在使用的是 React Native 0.61.5。

另外,我已经尝试删除 node_modules 文件夹并再次安装模块,但它仍然抛出错误。它仅在调试模式下抛出错误。

以下是错误的截图:

在此输入图像描述 在此输入图像描述

react-native

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

React Native无法识别的字体系列无法修复

字体在我的资产文件夹中,它们也在xcode复制包资源中,也在资源文件夹中.我已经运行了react-native链接,但它仍然没有找到字体.我错过了什么吗?请参阅附图以供参考:

在此输入图像描述

在此输入图像描述

在此输入图像描述 在此输入图像描述

在此输入图像描述

在此输入图像描述

ios react-native

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

React Native Reanimated 错误:任务 ':react-native-reanimated:compileDebugJavaWithJavac' 执行失败

嗨,我最近创建了一个 react native 应用程序版本 0.60.5,并安装了 react-navigation 和 react-native-reanimated。当我在 Android Studio 中构建项目时,我在 react-native-reanimated: 中收到此错误Execution failed for task ':react-native-reanimated:compileDebugJavaWithJavac'。我做错了什么吗?

这是一个屏幕截图: 一种

react-native react-navigation

4
推荐指数
2
解决办法
9469
查看次数

如何在 Swift 4 中使用 CAShapeLayer 和 BezierPath 绘制曲线?

我想知道如何在 Swift 4 中使用 CAShapeLayer 和 BezierPath 给定两个点(A 点和 B 点)渲染一条如下图所示的曲线?

func drawCurvedLine(start: CGPoint, end: CGPoint) {
   //insert code here
}
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述

core-graphics cashapelayer ios uibezierpath swift4

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

React Native Firebase - 如何从 Firebase 存储中检索图像并在 Image 组件中显示?

从 firebase.storage().ref('asd') 获取图像的 ref 后,如何在此处检索图像并分配给 Image 组件?

const ref = firebase.storage().ref('path/to/image.jpg');

<Image
  source={?}
/>
Run Code Online (Sandbox Code Playgroud)

react-native react-native-firebase

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