Post

Replies

Boosts

Views

Activity

Reply to How to best handle this localization scenario?
Is it possible from a localized french VALUE, to get corresponding VALUE in base language? You may have another way (I do not recommend, but it will require less change to your code). When you get the answer (in French or whatever language), build the array of localized strings from original array let localizedStrings = originalArray.map() { NSLocalizedString($0, comment: "") } Search for the answer and get the base string var baseAnswer = "" if let index = localizedStrings.firstIndex(of: answer) { baseAnswer = originalArray[index] } Do what you need with baseAnswer
Topic: Programming Languages SubTopic: Swift Tags:
May ’21
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