xcode12

Bringing iOS Frameworks through Carthage in Xcode 12.0

混江龙づ霸主 提交于 2021-02-18 20:56:38
问题 I am using Xcode 12.0 and Carthage 0.35.0 and when I do Carthage bootstrap --platform iOS or Carthage update --platform iOS --no-use-binaries on a framework that I have developed I get this error. I did not have this problem in Xcode 11.7. *** Building scheme "MyFrameworkKit" in MyFrameworkKit.xcodeproj Build Failed Task failed with exit code 1: /usr/bin/xcrun lipo -create /Users/myname/Library/Caches/org.carthage.CarthageKit/DerivedData/12.0_12A7209/MyFrameworkKit

Bringing iOS Frameworks through Carthage in Xcode 12.0

ⅰ亾dé卋堺 提交于 2021-02-18 20:56:22
问题 I am using Xcode 12.0 and Carthage 0.35.0 and when I do Carthage bootstrap --platform iOS or Carthage update --platform iOS --no-use-binaries on a framework that I have developed I get this error. I did not have this problem in Xcode 11.7. *** Building scheme "MyFrameworkKit" in MyFrameworkKit.xcodeproj Build Failed Task failed with exit code 1: /usr/bin/xcrun lipo -create /Users/myname/Library/Caches/org.carthage.CarthageKit/DerivedData/12.0_12A7209/MyFrameworkKit

XCode 12, FIRAnalyticsConnector, Build Error

夙愿已清 提交于 2021-02-18 05:03:49
问题 After upgrading to XCode 12, my project doesn't build for the simulator anymore. The error I get is: ld: in ... /Pods/FirebaseAnalytics/Frameworks/FIRAnalyticsConnector.framework/FIRAnalyticsConnector( FIRAnalyticsConnector_e321ed8e3db06efc9803f6c008e67a34.o), building for iOS Simulator, but linking in object file built for iOS, file '.../Pods/FirebaseAnalytics/Frameworks/FIRAnalyticsConnector.framework/FIRAnalyticsConnector' for architecture arm64 clang: error: linker command failed with

Troubles with starting value using UISlider

北慕城南 提交于 2021-02-16 20:24:26
问题 Started working on the application. There was the following problem, in Main.storyboard the current value is set for the slider (for the top one it is 1.5 out of 3, and for the bottom one it is 100 out of 200), therefore, in the screenshot, I should have points on the slider track in the middle. I started googling about it, I can't find anything. Xcode 12 problem maybe? If not, please help me write the correct search query. I will be very grateful. Sorry for my bad English. :) Here

“IPA Processing Failed” when trying to export project as Ad-Hoc Build with M1 MacBook Air

淺唱寂寞╮ 提交于 2021-02-11 16:34:33
问题 When I try to export my app as an ad-hoc build, Xcode suddenly displays the error message "IPA Processing Failed". This used to work, does it have something to do with Apple Silicon? 回答1: Yes, it does have to do with Apple Silicon, seems to be an Xcode bug - if you run Xcode with Rosetta, it works. To run Xcode with Rosetta, open a context menu on Xcode.app, go to "Show Info", then check "Run with Rosetta". Now the ad-hoc build works. 来源: https://stackoverflow.com/questions/65338459/ipa

Xcode 12 & SwiftUI: Cannot preview in this file — Failed to update preview

徘徊边缘 提交于 2021-02-08 13:38:38
问题 Seems like previews stopped working on Xcode 12! Trying to preview the SwiftUI file template and getting the error below. Any ideas how to fix this? Tried cleaning the build folder, deleting derived data and restarting Xcode to no avail! On Catalina 10.15.6. RemoteHumanReadableError: Failed to update preview. The preview process appears to have crashed. Error encountered when sending 'prepare' message to agent. ================================== | RemoteHumanReadableError: The operation

How to detect if Local Network permissions are granted in iOS 14

最后都变了- 提交于 2021-02-07 19:14:46
问题 How to detect if the user has granted the local network permission in the app for iOS 14? I have to show an error screen if the user has denied permission and redirects to os settings to grant permission. Has Apple provided any way to find out just like location permission? 回答1: I wrote up this class that can be used if you're not on iOS 14.2. This class will prompt user for permission to access local network (first time). Verify existing permission state if already denied/granted. Just

Cannot build project with Xcode 12.0 beta 5

╄→гoц情女王★ 提交于 2021-02-07 14:28:30
问题 I downloaded Xcode 12.0 beta 5 and I'm trying to build my project, but I received the following error: <unknown>:0: error: unable to load standard library for target 'arm64-apple-ios9.0' I tried searching online for solutions, but none of what I found helped me to solve this error. I found this thread on SO but none of the proposed solutions worked for me. I think it's an error related to simulator. In fact, the project builds correctly with generic device and on a real device. 回答1: Your

Cannot build project with Xcode 12.0 beta 5

拥有回忆 提交于 2021-02-07 14:27:33
问题 I downloaded Xcode 12.0 beta 5 and I'm trying to build my project, but I received the following error: <unknown>:0: error: unable to load standard library for target 'arm64-apple-ios9.0' I tried searching online for solutions, but none of what I found helped me to solve this error. I found this thread on SO but none of the proposed solutions worked for me. I think it's an error related to simulator. In fact, the project builds correctly with generic device and on a real device. 回答1: Your

SwiftUI | Customize animation for scrollTo() using ScrollViewReader?

南楼画角 提交于 2021-02-06 11:48:32
问题 Is there a way to change the default scrolling animation of the ScrollView by using ScrollViewReader ? Problem I have tried different things but the animation remained as the default one. withAnimation(.easeInOut(duration: 60)) { // <-- Not working (changes nothing) proxy.scrollTo(50, anchor: .center) } As you can see here: (Obviously this is faster than a 1 minute animation) My demo code struct ContentView: View { var body: some View { ScrollView { ScrollViewReader { proxy in Button("Scroll