Post

Replies

Boosts

Views

Activity

Reply to Error loading Storyboard
Here is what I get from a working project (Xcode 12.4) ?xml version="1.0" encoding="UTF-8"? document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="17701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="BYZ-38-t0r" device id="retina6_5" orientation="portrait" appearance="light"/ dependencies deployment identifier="iOS"/ plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17703"/ capability name="Safe area layout guides" minToolsVersion="9.0"/ capability name="System colors in document resources" minToolsVersion="11.0"/ capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/ /dependencies scenes !--First View Controller-- scene sceneID="tne-QT-ifu" objects viewController storyboardIdentifier="FirstView" id="BYZ-38-t0r" customClass="FirstViewController" customModule="simpleTest" customModuleProvider="target" sceneMemberID="viewController" I note the following differences: toolsVersion="17701" vs "18122" for you But in your first post, with 12.0 it was: Plugin Version = 17156, which is anterior to mine. In my case I also have:         deployment identifier="iOS"/ May be you have included Mac in deployment info ? In my case:         plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17703"/ In yours     plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="18093"/ So I would (on a test project): do an option-clean build folder remove Mac deployment (if you did set it) change useAutolayout="YES" to "NO" You should file a bug report with all this information.
May ’21
Reply to I'm new but my hardware isn't
It is normally not possible, as maximum target with Xcode 10.1 is iOS 12. haven't you an iPhone with iOS 12 ? have a look here, you may find some advice: https://developer.apple.com/forums/thread/115043 In any case, if you want to publish some day on the AppStore, you'll need Xcode 12 at least.
May ’21
Reply to Error Message using AVFoundation
What is the complete error message you get ? Do you query query a MatrixMixer AudioUnit ? If so, may have a look here: https://stackoverflow.com/questions/38315905/kaudiounitproperty-matrixlevels-in-swift Note: line 1, you don't need all the cast. In addition, if not url, it will cause compiler error. So, useless. if url is effectively a URL, just write let avasset = AVAsset(url: url)
Topic: Programming Languages SubTopic: Swift Tags:
May ’21
Reply to Error loading Storyboard
I found this older thread where exact same problem showed (with the same cache directory). Solution proposed was: https://developer.apple.com/forums/thread/123204 having the same crash on XCode 11.2.1 . I went on to "Show package contents" of the ".xcworkspace" workspace directory and deleted "xcuserdata" folder. This resolved the crash for me.
May ’21
Reply to Error loading Storyboard
Seems you are using an old beta. Download Xcode 12.4 (or 12.5 if you run BigSur) Can download 12.4 here: https://developer.apple.com/download/more/ And try open the project. You should also test that a new project works. If that's not OK for your project: First make a copy of your project and work on this copy. Can you identify the object : MCj-i5-HUl ? You could open the storyboard in an editor to search for 'MCj-i5-HUl' Try to remove completely this object, which should remove all constraints Then try to reopen the project And recreate the deleted object.
May ’21
Reply to What is a scope ?
Do you understand the problem ? You use HexagonParameters, but is is nowhere defined. How could the compiler guess what it is ? In your code, just add the struct definition: import SwiftUI struct HexagonParameters { struct Segment { let useWidth: (CGFloat, CGFloat, CGFloat) let xFactors: (CGFloat, CGFloat, CGFloat) let useHeight: (CGFloat, CGFloat, CGFloat) let yFactors: (CGFloat, CGFloat, CGFloat) } static let adjustment: CGFloat = 0.085 static let points = [ Segment( useWidth: (1.00, 1.00, 1.00), xFactors: (0.60, 0.40, 0.50), useHeight: (1.00, 1.00, 0.00), yFactors: (0.05, 0.05, 0.00) ), Segment( useWidth: (1.00, 1.00, 0.00), xFactors: (0.05, 0.00, 0.00), useHeight: (1.00, 1.00, 1.00), yFactors: (0.20 + adjustment, 0.30 + adjustment, 0.25 + adjustment) ), Segment( useWidth: (1.00, 1.00, 0.00), xFactors: (0.00, 0.05, 0.00), useHeight: (1.00, 1.00, 1.00), yFactors: (0.70 - adjustment, 0.80 - adjustment, 0.75 - adjustment) ), Segment( useWidth: (1.00, 1.00, 1.00), xFactors: (0.40, 0.60, 0.50), useHeight: (1.00, 1.00, 1.00), yFactors: (0.95, 0.95, 1.00) ), Segment( useWidth: (1.00, 1.00, 1.00), xFactors: (0.95, 1.00, 1.00), useHeight: (1.00, 1.00, 1.00), yFactors: (0.80 - adjustment, 0.70 - adjustment, 0.75 - adjustment) ), Segment( useWidth: (1.00, 1.00, 1.00), xFactors: (1.00, 0.95, 1.00), useHeight: (1.00, 1.00, 1.00), yFactors: (0.30 + adjustment, 0.20 + adjustment, 0.25 + adjustment) ) ] } struct BadgeBackground: View { var body: some View { Path { path in var width: CGFloat = 100.0 let height = width path.move( to: CGPoint( x: width * 0.95, y: height * 0.20 ) ) HexagonParameters.segments.forEach { segment in path.addLine( to: CGPoint( x: width * segment.line.x, y: height * segment.line.y ) ) } } .fill(Color.black) } } struct BadgeBackground_Previews: PreviewProvider { static var previews: some View { BadgeBackground() } }
Topic: Programming Languages SubTopic: Swift Tags:
May ’21
Reply to 'iPhone unsupported OS version'
Can't you install Xcode 12.5 ? Xcode 12.5 includes SDKs for iOS 14.5, iPadOS 14.5, tvOS 14.5, watchOS 7.4, and macOS Big Sur 11.3. The Xcode 12.5 release supports on-device debugging for iOS 9 and later, tvOS 9 and later, and watchOS 2 and later. Xcode 12.5 requires a Mac running macOS Big Sur 11 or later.
May ’21