我正在尝试将使用ARKit(Unity构建)的应用程序上传到iTunes Connect for TestFlight发行版.虽然导出和上传到应用程序商店进程Xcode- > Organizer我看到崩溃"剥离APPNAME.app的扩展属性".
我检查了所有bitcode和符号配置的开/关,自动签名,手动.我的项目的部署目标是iOS 10,因为无法设置11.我还尝试从simillar线程(https://forums.developer.apple.com/thread/83219)执行以下步骤,并将App Store 1024图标添加到Images.xcassets.
有什么想法为什么Xcode崩溃?
崩溃之前的屏幕截图:

崩溃报告:
Process: Xcode [10862]
Path: /Applications/Xcode-9b6.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 9.0 (13238.4)
Build Info: IDEFrameworks-13238004000000000~11
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Xcode [10862]
User ID: 501
Date/Time: 2017-09-10 14:56:10.196 +0100
OS Version: Mac OS X 10.12.6 (16G29)
Report Version: 12
Anonymous UUID: FD8390BC-9E7B-969D-15A2-22A8DBBD050D
Time Awake Since Boot: 16000 seconds
System Integrity Protection: enabled
Crashed Thread: 17 Dispatch queue: ConcurrentQueue: -[IDEDistributionPackagingStepViewController viewDidInstall]_block_invoke …Run Code Online (Sandbox Code Playgroud) 在xcode 9中,当我将搜索栏放在视图中时,它会自动移动UI的其余部分.当我尝试从视图中删除搜索栏时,我得到一个黑色空间而不是正在更正的UI.我使用的是:self.navigationItem.searchController = nil.我尝试了很多东西,但是在删除搜索栏后我不知道如何更正UI.只有当我移动到另一个视图控制器并且在没有搜索栏的情况下再次返回UI是正确的.我在这里错过了什么?
码:
@IBAction func searchIconPressed(_ sender: UIBarButtonItem) {
//ios 11
if #available(iOS 11.0, *) {
if self.navigationItem.searchController == nil {
self.navigationItem.searchController = self.searchController
self.searchController.isActive = true
}
else {
self.navigationItem.searchController?.isActive = false
self.navigationItem.searchController = nil
}
}
//when ios 9-10
else {
if self.navigationItem.titleView == nil {
self.navigationItem.titleView = self.searchController.searchBar
self.searchController.isActive = true
}
else {
self.navigationItem.titleView = nil
}
}
}
Run Code Online (Sandbox Code Playgroud)
}
我遇到了Xcode 9中的问题(之前在Xcode 8中工作正常).由于App Store图标的图像资源不正确,我无法上传tvOS版本.但App Store图标的大小正好是1280x768和3层.我之前能够使用Xcode 8将内容上传到iTunes.但现在我收到了这样的错误:
错误ITMS-90718:"图像资产无效.应用程序商店图标必须只包含大小(1280pt×768pt @ 1x)的图像.请参阅 https://developer.apple.com/tvos/human-interface-guidelines/icons -and-images/app-icon 获取更多信息"
升级到XCode 9后,我可以归档项目,我已经运行了plutil Info.plist来验证plist是否正确但是当我尝试导出到ipa时我收到
无法读取数据,因为格式不正确
我试图浏览日志,但我没有言语.
2017-10-05 04:35:53 +0000 [MT] Beginning distribution assistant for archive: ****, task: Export
2017-10-05 04:35:57 +0000 [MT] Proceeding to distribution step IDEDistributionAnalyzeArchiveStepViewController, context: <IDEDistributionContext: 0x7ffc898043d0; archive(resolved)='<IDEArchive: 0x7ffc9108e330>', distributionTask(resolved)='2', distributionMethod(resolved)='<IDEDistributionMethodAdHoc: 0x7ffc9dd3f810>', team(resolved)='(null)'>
Chain (3, self inclusive):
<IDEDistributionContext: 0x7ffc898043d0; archive = '<IDEArchive: 0x7ffc9108e330>', distributionMethod='<IDEDistributionMethodAdHoc: 0x7ffc9dd3f810>', team='(null)'>
<IDEDistributionContext: 0x7ffc89387550; archive = '<IDEArchive: 0x7ffc9108e330>', distributionMethod='<IDEDistributionMethodAdHoc: 0x7ffc9dd3f810>', team='(null)'>
<IDEDistributionContext: 0x7ffc91d70c00; archive = '<IDEArchive: 0x7ffc9108e330>', distributionMethod='(null)', team='(null)'>
</IDEDistributionContext: 0x7ffc898043d0>
2017-10-05 04:35:57 +0000 Found team <IDEProvisioningBasicTeam 0x7ffc89d14b90: teamID: 6Q6M3S2X3M, teamName: ****, LLC> in …Run Code Online (Sandbox Code Playgroud) 我试图将我的代码从xcode 8.2 swift 3.0.2迁移到xcode 9 swift 4,我有这个代码的问题:
func test<T0, TRet>(_ fn: (T0) -> TRet) -> Void {
print("foo1")
print(T0.self)
}
func test<T0, T1, TRet>(_ fn: (T0, T1) -> TRet) -> Void {
print("foo2")
print(T0.self)
print(T1.self)
}
let fn2 : (Int, Int) -> Int = { (x:Int, y:Int)->Int in
return x+y
}
test(fn2)
Run Code Online (Sandbox Code Playgroud)
xcode 8.0.2,swift 3.0.2结果:
foo2
Int
Int
Run Code Online (Sandbox Code Playgroud)
xcode 9,swift 4结果:
Playground execution failed:
error: MyPlayground.playground:12:1: error: ambiguous use of 'test'
test(fn2)
^
MyPlayground.playground:1:6: note: found this candidate
func test<T0, …Run Code Online (Sandbox Code Playgroud) UIColor.named("myColor")自Xcode 9问世以来,我在整个应用程序中使用.虽然我在UITextField一个IBDesignable类的自定义实现中有一个镜头,但我一直收到以下错误:
错误:IB Designables:无法呈现和更新ViewController()的自动布局状态:代理程序崩溃
此外,我的类有几个IBInspectable属性,包括类型UIColor,但在这些属性的Interface Builder下拉列表中,我只能选择标准颜色,我的命名颜色不会像标准类属性那样显示.
以后一个问题作为第一个问题的线索,不满意和临时的解决方案是在我的IBDesignable课堂上不使用命名颜色.或者,不使用IBDesignable.
这可能是一个错误,但我想知道其他人是否遇到过这个问题,如果有任何修复,他们会想出来.
所以我使用Xcode 9.2,一个月我没有在项目上遇到这个问题.今天,我记得我在故事板中将导航栏更改为"NOT"半透明.在我取消选中后,出现了这两个警告.
我已经阅读并完成了在这里和其他网站上提出的许多解决方案,但它仍然存在.我还没有找到Xcode 9上发生的问题的解决方案.Xcode提供的修复(我试图更新约束并重置为建议的约束)如果单击"修复错位"则不执行任何操作.
我通过故事板设定了高度.
我已经通过代码设置了高度,但仍然没有运气.运行后,应用程序上完全没有问题.
我想知道这是否是我在Xcode 8及更早版本中发现的错误,或者只是在Xcode 9中有一个我不知道的简单修复.
我没有在Xcode 9中发现任何人有这个问题,所以我试着问一下.任何帮助都非常感谢.
先感谢您!
我有一个iOS应用程序,它建立在xcode8(Sierra)和xcode9(High Sierra)上.
当我在执行exportArchive时,它会传递xcode8但在xcode9上失败.
我的plist中有provisioningProfiles部分,并且格式正确无效.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>method</key>
<string>enterprise</string>
<key>teamID</key>
<string><Our teamID></string>
<key>signingStyle</key>
<string>manual</string>
<key>signingCertificate</key>
<string><Our signingCertificate></string>
<key>provisioningProfiles</key>
<dict>
<key><Our bundleID></key>
<string><App Name></string>
</dict>
</dict>
</plist>
Run Code Online (Sandbox Code Playgroud)
我有另一个应用程序,我正在建设,一切都很好.xcode8和xcode9都有.所有ID都是正确的.
这是我得到的错误:
2018-04-11 02:16:07.014 xcodebuild[25609:10463244] [MT] IDEDistribution: Step failed: <IDEDistributionPackagingStep: 0x7fe89376c690>: Error Domain=NSCocoaErrorDomain Code=3840 "No value." UserInfo={NSDebugDescription=No value., NSFilePath=/var/folders/y0/5_70v74n4830lyzmjs08pm4w0000gn/T/ipatool-json-filepath-KoS1w8}
[09:16:07][iOS: Build release version] ** EXPORT FAILED **
[09:16:07][iOS: Build release version] error: exportArchive: The data couldn’t be read because it isn’t in the correct …Run Code Online (Sandbox Code Playgroud) 下载Xcode 9 beta后,我发现文件模板系统发生了变化.
例如,我有一个创建2个文件的简单模板(它可能根本不应该以这种方式工作).基本文件名是
___ ___ FILEBASENAME斯威夫特
和
___ ___ FILEBASENAME View.swift
它创建了TableCell.swift和TableCellView.swift,这里是代码:
//
// ___FILENAME___
// ___PROJECTNAME___
//
// Created by ___FULLUSERNAME___ on ___DATE___.
//___COPYRIGHT___
//
import Foundation
import UIKit
class ___FILEBASENAME___: UITableViewCell {
let mainView = ___FILEBASENAME___View()
override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
super.init(style: style, reuseIdentifier: reuseIdentifier)
setupCell()
contentView.addSubview(mainView)
mainView.setupView()
}
fileprivate func setupCell() {
backgroundColor = UIColor.clear
selectionStyle = .none
}
required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
}
Run Code Online (Sandbox Code Playgroud)
并查看文件:
//
// ___FILENAME___ …Run Code Online (Sandbox Code Playgroud) xcode9 ×10
ios ×3
react-native ×3
swift ×3
arkit ×1
generics ×1
ibdesignable ×1
ios11 ×1
javascript ×1
searchbar ×1
swift4 ×1
templates ×1
tvos ×1
uicolor ×1
xcode ×1
xcode9-beta ×1