i created a new project and imported firebaseauth , firebasefirestore, firebasefirestoreswift and firebase storage and i run this project
any time i run this project the code they are all fine
i get this error saying boringss1_metrics_log_metric_block_invoke
(153) Failed to log metrics
anytime i click create account button note that i get them results in my firebase authentication but it seems not to pass the registration page in my project and prints that error i am stuck somebody please save me
even when i try to login the already created account from the userSection from the auth.authservice it still shows this error and wont pass the login page same with the registration page
Xcode
RSS for tagBuild, test, and submit your app using Xcode, Apple's integrated development environment.
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Hello, I am going through the swift tutorial and am experiencing an 'expected expression after operator' error in when I am trying to add the favorite button. I'm not quite sure how to fix it.
Below is the code and where the error is.
import SwiftUI
struct LandmarkDetail: View {
@Environment(ModelData.self) var modelData
var landmark: Landmark
var landmarkIndex: Int{
modelData.landmarks.firstIndex(where: { $0.id == landmark.id}) !
} **_expected expression after operator_**
var body: some View {
@Bindable var modelData = modelData
ScrollView {
MapView(coordinate: landmark.locationCoordinates)
.frame(height: 300)
CircleImage(image: landmark.image)
.offset(y:-130)
Hi, is there any way to set the clipboard to unnamed in Vim mode? For example, if there were a .vimrc file, I would add:
set clipboard=unnamed
I'd like to be able to use "y" to yank / copy selected sections of code and paste them in the search bar or external applications.
Thanks!
Topic:
Developer Tools & Services
SubTopic:
Xcode
Hello, today I encountered strange xcodebuild command behaviour when building an application on my company CICD machine. Our app has the standard settings for the IOS platform, without any changes to the Build Settings, but building on the machine for CICD (mac mini M1) fails during build of SPM library. The aforementioned library is simple local SPM Package which wrapps swift-dependencies library, adds macros and few structures. Build log show that the process attempted to build a macro with the x86_64 architecture(log fragment at the end). Building on my local machine succeeds. Unfortunately I've run out of ideas, so I'm hoping that maybe someone here has encountered something similar and will be able to help me solve the problem.
Used command:
xcodebuild -workspace $WorkSpaceName.xcworkspace -scheme SchemeName -configuration Release -destination generic/platform=iOS -skipPackagePluginValidation -skipMacroValidation clean archive
Package.swift:
https://gist.github.com/pelekon/4a563b7f279c0d2f02060b8c554d76b2
Basic system env info:
MacOS 15.1.1, Xcode 16.1 (16B40)
Log fragment:
https://gist.github.com/pelekon/d008ff366124e333d4318fa152062797
Topic:
Developer Tools & Services
SubTopic:
Xcode
Hi,
I have recently noticed a very-very annoying thing in my CI pipeline, that I managed to reproduce locally.
Using macOS Sonoma 14.7.1 and Xcode 15.4, running a test target from Terminal, the first run produces this output:
$ xcodebuild test -workspace [redacted].xcworkspace -scheme [redacted] -quiet
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:macOS, arch:arm64, id:[redacted], name:My Mac }
{ platform:macOS, arch:x86_64, id:[redacted], name:My Mac }
{ platform:macOS, name:Any Mac }
Testing started
Test suite '[redacted]' started on 'My Mac - [redacted] (75944)'
Test case '[redacted].[redacted]()' passed on 'My Mac - [redacted] (75944)' (0.001 seconds)
Test case '[redacted].[redacted]()' passed on 'My Mac - [redacted] (75944)' (0.001 seconds)
2024-11-29 19:31:02.311 xcodebuild[75908:47784216] [MT] IDETestOperationsObserverDebug: 1.380 elapsed -- Testing started completed.
2024-11-29 19:31:02.311 xcodebuild[75908:47784216] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start
2024-11-29 19:31:02.311 xcodebuild[75908:47784216] [MT] IDETestOperationsObserverDebug: 1.380 sec, +1.380 sec -- end
so the test actually completes, but the process does not end, because I get a popup that
“Terminal.app” would like to access data from other apps.
Removing the "App Sandbox" entitlement immediately alleviates this problem, but it would be very silly to do so because of unit tests.
This ultimately means that whenever we use a new device or include a new project or test target, this popup comes up. Very undesirable for CI servers (especially if the servers are ephemeral virtual machines created for the current job).
Is there a permanent solution that disables this popup for test runs?
Dear Experts,
I have an Xcode project that generates two iOS app targets. Most of the code is shared between the two targets. Let's call them "Project", "App1" and "App2".
I have some Swift code that is called from objC++. To make this work, in the objC++ files currently I #include "App1-Swift.h". Clearly this only works when building App1. What's the right way to set this up to work for both targets?
Looking at the build settings, currently the "Generated Header Name" is set to "$(SWIFT_MODULE_NAME)-Swift.h". Presumably, SWIFT_MODULE_NAME expands to the target name.
There are various possible ways to fix this, but which one is "right"? I bet that if I fix it in the wrong way, something else will go wrong later. I could:
Change the objC++ to #include different headers depending on the target being built.
Change the build setting to use the project name (from a variable?) instead of the SWIFT_MODULE_NAME.
Somehow cause SWIFT_MODULE_NAME to equal the project name, rather than the target name.
Any advice?
Thanks.
Attempting to write my first WatchOS App which builds correctly and refuses to run on my target physical watch. The code runs fine on the simulator.
IOS 18.2, Watch OS 11.2, XCode 16.1
When I run, the pop-up shows:
Connecting to Apple Watch (about 5 seconds)
Apple Watch may need to be unlocked to recover from previously reported preparation errors (less than a second)(needed to screen record to catch the error)
Waiting to reconnect to Apple Watch (lives here indefinitely)
Both the Watch and iPhone were unlocked during the build/run sequence.
The iPhone is in "Developer" Mode, but could not find the switch anywhere on the watch or watch app to enable dev mode.
I downloaded the new Xcode 16 Beta and AVP OS 2.0, But I saw that in Windows --> Devices + Simulators, my Mac was not recognizing that I had updated the Vision Pro's OS. So, I disconnected the AVP and tried connecting it again, but the device is not showing up.
I've tried going into Remote Devices within the headset, disabling/enabling Developer Mode, turning off/on Wifi, restarting both devices.
Is this an issue with XCode 16 Beta and/or Vision OS 2.0?
/Users/jadenbro1/Library/Developer/Xcode/DerivedData/FreshSocial-gdolmhnopfbaoggkkbuawiubjget/Build/Intermediates.noindex/FreshSocial.build/Debug-iphoneos/FreshSocial.build/DerivedSources/FreshSocial_vers.c module map file '/Users/jadenbro1/Library/Developer/Xcode/DerivedData/FreshSocial-gdolmhnopfbaoggkkbuawiubjget/Build/Products/Debug-iphoneos/react-native-text-recognition/react_native_text_recognition.modulemap' not found
/Users/jadenbro1/Library/Developer/Xcode/DerivedData/FreshSocial-gdolmhnopfbaoggkkbuawiubjget/Build/Intermediates.noindex/FreshSocial.build/Debug-iphoneos/FreshSocial.build/DerivedSources/FreshSocial_vers.c
extern const unsigned char FreshSocialVersionString[];
extern const double FreshSocialVersionNumber;
const unsigned char FreshSocialVersionString[] attribute ((used)) = "@(#)PROGRAM:FreshSocial PROJECT:FreshSocial-1" "\n";
const double FreshSocialVersionNumber attribute ((used)) = (double)1.;
Can someone help me understand this?
I’ve done everything, deleted derived data, cleaned the build, built a whole new project environment, everything…
Topic:
Developer Tools & Services
SubTopic:
Xcode
In Xcode Version 16.1
Create a new Project, choose Multiplatform, App
For testing system, choose XCTest and UI Tests
In the project, open the newly generated template Unit test file
Click either of the diamonds in the left margin (either to run the example test or the entire file)
Expected Result: Code compiles and then Runs the test/tests
Actual Result: Code compiles, but then never completes testing (the top status bar is stuck saying "Testing..." forever.)
Am I missing something?
Is there any way to stop previews from live updating? It's constantly running and that's nice when I'm developing, but I'd like it to pause updating when I'm not using the Xcode. It heats up my m1 air and drains unnecessary power reducing the battery levels significantly.
xcodebuid failed at signing step although there is no issue building and distributing from Xcode GUI
Hi all,
I have a host application to register and start network system extension.
I created 2 provisional profiles that grant SystemExtension and NetworkExtension capabilities for the host app, and NetworkExtension for the network system extension.
I'm able to archive and distribute (direct distribution) the app from XCode GUI. However, when I use xcodebuild command to build the project, it gave me this error:
error: No profile for team 'TEAMID' matching 'Host APP Distribution Profile' found: Xcode couldn't find any provisioning profiles matching 'TEAMID/Host APP Distribution Profile'. Install the profile (by dragging and dropping it onto Xcode's dock item) or select a different one in the Signing & Capabilities tab of the target editor.
error: No profile for team 'TEAMID' matching 'My NetworkExt Distribution Profile' found: Xcode couldn't find any provisioning profiles matching 'TEAMID/My NetworkExt Distribution Profile'. Install the profile (by dragging and dropping it onto Xcode's dock item) or select a different one in the Signing & Capabilities tab of the target editor.
I already installed those 2 provisioning profiles assign them to my targets in XCode. There is no error from Xcode when building and distributing it.
Does anyone have the same issue? How could you solve it.
Thanks!
An
Topic:
Developer Tools & Services
SubTopic:
Xcode
I'm working on a project with several dozen targets and a Swift macro. Due to the purpose of the macro (generating Codable boilerplate), pretty much all targets depend on it. The project is generated with XcodeGen.
Since upgrading to 16.1 (I think), Xcode has basically turned into a glorified TextEdit for me: refactoring, symbol navigation and search don't work. Also, I'm getting a lot of ghost errors that keep popping up hours after I fix them, while at the same time new build errors never show up in the error navigator, so I have to check the build log to see why the build failed.
I noticed that project indexing is taking a very long time. As a troubleshooting step, I tried deleting DerivedData (which afaik includes the index) to see if this fixes the problem. Xcode started indexing the project from scratch, and if the progress indicator is to be trusted, After ~40 minutes it's only about 1/3 done. For every target Xcode seems to be spending a lot of time indexing SwiftOperators, SwiftDiagnostics, SwiftParser. I'm assuming these are related to the macro.
Does anyone else have this problem? Unfortunately, I can't confirm this is caused by the macro, removing it from the project and seeing if this fixes the issue seems infeasible.
I have inherited the maintenance of the app so I do not know much about the initial setup. Every time I try to build the app in Xcode, I get an error stating Multiple commands produce Info.plist. I fix this by removing Info.plist from Build Phases - Copy Bundle Resources. Then the build succeeds. However, every time I try to build again the Info.plist is back again in that list and the error occurs until I remove it again. Is there some setting I should adjust? Save is greyed out so how do I get Xcode to remember my change?
I wanted to know if I could create an app that involves some AR scenes using ARKit. I have a Figma prototype and was thinking of making some AR scenes that involve object tracking on ARKit. I wanted to know if I would be able to incorporate these AR scenes into my app somehow. I want these experiences to be triggered by a button from my app design. Also would this be easy to do and involve lots of coding?
Thank you!!!
Hello!
I'm running MacOS 15.1.1 virtual machine on MacBook M2 Sequoia 15.1.1.
While trying to add Apple account in Xcode 16.1 and it fails with error:
Decoding Error
There was a failure decoding response: (HTTP 401, 60 bytes)
The data couldn't be read because it isn't in the correct format.
Account information is valid, it's the same account as I used to login in host system.
It seems like issue reported here:
https://developer.apple.com/forums/thread/767673
Is there any chance to fix this and get it working?
I'm working with a MacMini M1 running Sequoia 15.1 OS, and I've configured a Virtual Machine on this device using the Virtualization.Framework to operate with the same OS version.
While I can sign into my account through System Settings without any problems, I encounter difficulties when trying to add my account to Xcode 16.2. Initially, the login appears to succeed, but Xcode quickly presents a "Decoding Error":
There was an issue decoding the response: (HTTP 401, 60 bytes) The data couldn’t be read because it is not in the correct format. As a result, I'm unable to access any account details or team information.
I found a similar issue but I don't think it was resolved, even if it's marked as such:
https://developer.apple.com/forums/thread/767673
Is there an existing workaround?
I am using Mac Mini M2 with Sequoia 15.1 OS with Virtual Machine (Virtualization.Framework) with same OS.
(almost same as here: https://developer.apple.com/forums/thread/767673)
When adding my account in Xcode there is error with:
Decoding Error.
There was a failure decoding response: (HTTP 401, 60 bytes) The data couldn’t be read because it isn’t in the correct format.
Please fix that
I can't see information like teams and so on
Dear Support Team,
I constantly get a 401 unauthorised error, when I try to add my Developer account in Xcode while running a virutalised macOS using https://developer.apple.com/documentation/virtualization. So I can't use signing, entitlements, etc when building within a virutalised macOS.
The error shown is below:
There was a failure decoding response: (HTTP 401, 60 bytes) The data couldn’t be read because it isn’t in the correct format.
I've found probably the same issue here https://developer.apple.com/forums/thread/759877 Unfortunately, I can't find any updates.
Are you aware of this problem? Are there any planned fixes in upcoming macOS updates?
15.0 (24A335)
Version 16.1 (16B40)
Apple M1 Pro, 16 GB Ram
Best regards, Evgenii
Hello!
I am currently experiencing a problem similar to what was reported here: https://developer.apple.com/forums/thread/767673
The account information is most certainly not the problem, but I am still getting the error:
There was a failure decoding response: (HTTP 401, 60 bytes)
The data couldn't be read because it isn't in the correct format
Is the mentioned problem still not resolved? If it is not, could you please provide an estimated date for a fix?
Are there any workarounds for this issue?