在我的项目中使用MobileVLCKit 3.0.0播放媒体.
所有类型的视频都能在iOS9和10上成功播放但在iOS 11视频音频上能够收听,但图片无法显示并显示黑屏.
给出以下日志:
2017-09-18 18:26:17.640065+0800 DemoPlayer[39923:369260] creating player instance using shared library
=================================================================
Main Thread Checker: UI API called on a background thread: -[UIView bounds]
PID: 39923, TID: 369593, Thread name: (none), Queue name: com.apple.root.default-qos.overcommit, QoS: 21
Backtrace:
4 DemoPlayer 0x0000000108349895 Open + 405
2017-09-18 18:26:23.490963+0800 DemoPlayer[39923:369593] [reports] Main Thread Checker: UI API called on a background thread: -[UIView bounds]
PID: 39923, TID: 369593, Thread name: (none), Queue name: com.apple.root.default-qos.overcommit, QoS: 21
Backtrace:
4 …Run Code Online (Sandbox Code Playgroud) 在iOS 11中需要有关Audio Units的帮助.我有两个iOS应用程序:一个提供V3音频单元的应用程序和一个用于Audio Units的主机应用程序.问题是,当我使用iOS 11 SDK在Xcode 9.0中编译主机应用程序并在带有iOS 11的iPhone上运行它时,主机应用程序看不到音频单元.
我做了一些研究,这就是我得到的:问题影响任何音频单元应用程序,而不仅仅是这两个特定的应用程序.如果您使用Apple网站上的AudioUnitV3Example项目(https://developer.apple.com/library/content/samplecode/AudioUnitV3Example/Introduction/Intro.html),您可以轻松地看到同样的问题.此示例项目包含两个应用程序:iOSAUv3Host和提供音频单元应用程序扩展的iOSFilterDemoApp.您需要在iOS设备上安装这两个应用程序.
当您启动AUv3Host应用程序时,它将显示系统中所有可用音频单元的列表:
我还使用iOS 10 SDK(来自https://developer.apple.com/download/more/)下载了Xcode 8.3.3,并尝试了构建SDK和设备的iOS版本的所有可能配置.这是我得到的:
我自己用Xcode 9构建了WeexSDK.framework.然后将框架集成到我的项目中.构建我的应用程序时得到奇怪的编译错误日志,有人可以帮助我吗?
Undefined symbols for architecture arm64:
"___llvm_profile_runtime", referenced from:
___llvm_profile_runtime_user in WeexSDK(WXDisplayQueue.o)
___llvm_profile_runtime_user in WeexSDK(WXResourceRequestHandlerDefaultImpl.o)
___llvm_profile_runtime_user in WeexSDK(WXSwitchComponent.o)
___llvm_profile_runtime_user in WeexSDK(WXRootView.o)
___llvm_profile_runtime_user in WeexSDK(WXRecyclerUpdateController.o)
___llvm_profile_runtime_user in WeexSDK(WXRecyclerComponent.o)
___llvm_profile_runtime_user in WeexSDK(WXThreadSafeMutableDictionary.o)
...
(maybe you meant: ___llvm_profile_runtime_user)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Run Code Online (Sandbox Code Playgroud) 有这个教程:alamofire https://www.raywenderlich.com/147086/alamofire-tutorial-getting-started-2
在其中安装的pod被声明为'Alamofire','〜> 4.2.0'
我是否需要指定版本4.2.0或者我可以将其声明为pod'Alamofire'吗?
我去了Cocoapods的Alamfoire页面,我实际上找不到最新的稳定版本,虽然我确定它在某处.
还有这篇帖子:alamofire没有使用xcode 9/swift 4 Xcode 9无法使用Alamofire pod构建Swift 4项目,但我认为问题是该人打开了错误的项目,而不是代码库.
但如果有人知道任何其他问题,请随时大声喊出来.
谢谢.
我尝试使用自定义的xib文件。但是这些UI并未显示在xcode的主视图控制器中。但是它会在运行应用程序时显示。我已经在类中添加了@IBDesignable。这是我所做的。
我创建了TestView.xib并添加了一些设计
我创建了TestView.swift
我在自定义类中使用TestView更新了TestView.xib的fileOwner
我将初始化代码添加到testView.swift
import UIKit
@IBDesignable class DetailView: UIView {
override init(frame: CGRect){
super.init(frame: frame)
self.setup()
}
required init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)!
self.setup()
}
func setup() {
let view = Bundle.main.loadNibNamed("TestView", owner: self, options: nil)?.first as! UIView
view.frame = self.bounds
self.addSubview(view)
}
}
Run Code Online (Sandbox Code Playgroud)
并在MainViewController的UIView上添加了该链接,并使用自定义类名称链接到TestView。
之后,我运行该应用程序,可以从testView看到UI。仿真器图像和结果
如何启用MainViewController中的自定义UI?谢谢
几天前,当我打开我的Xcode项目并导航到故事板时,Xcode会挂起,然后最终没有响应,然后我将不得不强制退出.我查了一下这个问题并看到了删除〜/ Library/Developer文件夹的建议...... 现在甚至没有出现Xcode窗口.该应用程序只是立即崩溃而没有打开.
我按照时间顺序采取的步骤:
依然没有.我确实有一台2011 MacBook Pro,我想知道它是否只是我的机器的问题,或者它确实是因为丢失了〜/ Library/Developer.
有关如何恢复必要文件或成功打开Xcode的任何建议都表示赞赏.
推向github工作正常.我认为当我从github检出分支时,这个问题就开始了.我该如何解决?当我现在尝试推送到github时,我收到错误"当前分支无法确定".
此外,我的所有本地提交都没有在我的任何一个本地分支中显示评论.至少不在xcode 9 UI中.我真的不知道如何使用本地git来检查这些东西,所以如果有人想指出我也会提供帮助的文档.
xcode9标志,导出ipa文件错误:由于数据格式不正确而无法读取,由于数据格式不正确而无法读取,为什么?错误日志:IDEDistribution.standard.log:
2018-02-09 01:53:02 +0000 [MT] Beginning distribution assistant for archive: wepilotrelase, task: Export
2018-02-09 01:53:04 +0000 [MT] Proceeding to distribution step IDEDistributionAnalyzeArchiveStepViewController, context: <IDEDistributionContext: 0x7fccfb2d7de0; archive(resolved)='<IDEArchive: 0x7fcd15b15e90>', distributionTask(resolved)='2', distributionMethod(resolved)='<IDEDistributionMethodAdHoc: 0x7fcd0c7aa3a0>', team(resolved)='(null)'>
Chain (3, self inclusive):
<IDEDistributionContext: 0x7fccfb2d7de0; archive = '<IDEArchive: 0x7fcd15b15e90>', distributionMethod='<IDEDistributionMethodAdHoc: 0x7fcd0c7aa3a0>', team='(null)'>
<IDEDistributionContext: 0x7fcd12fe94f0; archive = '<IDEArchive: 0x7fcd15b15e90>', distributionMethod='<IDEDistributionMethodAdHoc: 0x7fcd0c7aa3a0>', team='(null)'>
<IDEDistributionContext: 0x7fccfb62e080; archive = '<IDEArchive: 0x7fcd15b15e90>', distributionMethod='(null)', team='(null)'>
</IDEDistributionContext: 0x7fccfb2d7de0>
2018-02-09 01:53:04 +0000 Found team <IDEProvisioningBasicTeam 0x7fcd15aec320: teamID: 7PEH5UAQ6Q, teamName: Wepilot Inc.> in archive signature
2018-02-09 01:53:04 …Run Code Online (Sandbox Code Playgroud) 我使用Hopper Disassembler来拆卸它UIKit.framework.我通常选择二进制文件,/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/Frameworks/UIKit.framework/UIKit但由于我使用Xcode 9及更高版本,我无法找到二进制文件来进行反汇编.Xcode 8 UIKit.framework具有二进制文件,但Xcode 9 UIKit.framework只有一个UIKit.tbd文件.
如何在最近的Xcode中实现反汇编?