Post

Replies

Boosts

Views

Activity

Ambiguous use of 'textField' in Xcode 26
func textField( _ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String ) -> Bool { if let delegate = delegate, let shouldChangeCharactersIn = delegate.textField { return shouldChangeCharactersIn(textField, range, string) } return true } This is from an extension extension TextInput: UITextFieldDelegate, ObservableTextFieldDelegateProtocol { The delegate is already a UITextFieldDelegate, but when you click on the error, it returns 7 instances of: "Found this candidate in module 'UIKit' (UIKit.UITextFieldDelegate.textField)" This doesn't give an error in Xcode 16. Is this an Xcode 26 bug?
0
0
133
Jun ’25
How to define provisioning profile for extension using xcodebuild?
Good day, We added an extension to our app, but Azure won't build it since it doesn't support multiple provisioning profiles. In the meantime, in order to properly understand the problem, I've been trying to build the app and extension from the command line. I can get the app to build, but xcodebuild says there's no provisioning profile for the extension's target in the scheme. I looked all over and couldn't find any decent documentation for it. This is as far as I got: xcodebuild -sdk iphoneos -configuration Debug -workspace Project.xcworkspace -scheme Project -allowProvisioningUpdates CODE_SIGN_STYLE=Manual CODE_SIGN_IDENTITY="iPhone Distribution: My Company” PROVISIONING_PROFILE_SPECIFIER=“Provisioning profile name” I've seen that just adding APP_PROFILE="UUID" and EXTENSION_PROFILE="UUID" to the command line parameters should work, but I get the same result, whether I use APP_PROFILE and EXTENSION_PROFILE or not: error: Provisioning profile "My Provisioing Profile" has app ID "com.company.project", which does not match the bundle ID "com.company.project.shortcuts". (in target 'ProjectShortcuts' from project 'Project') So am I doing something wrong? Is there some newer way to do this, because the docs I read are several years old. Thanks.
3
0
1.6k
Oct ’22