Choose the real iPhone device on my Xcode and build for running. Xcode warn me to vertify the Developer App certification in VPN & Device Management. When I get through it as vertify. The setting page still ask me to vertify the app. I press the "Vertify App" Button and press "Vertify" but it can't work.
And it also cannot preview when I choose my device in the previewer.
But both work well on my iPad Air. I can pass the vertify app and also can preview through Xcode.
I searched the problem in forum.i found someone who has the same problem.
https://developer.apple.com/forums/thread/744579
I try to change my network environment, reboot the device, reboot the develop laptop, but still cannot work.
I'm using
Xcode Version 16.0 (16A242d)
iPhone 14 Pro with iOS 18.0 (22A3354)
iPad Air 3 with iPad OS 17.6.1
Post
Replies
Boosts
Views
Activity
I'm developing an app which supports for connect with an BLE device. There are some views for showing data from bluetooth. The code below for an example:
@EnvironmentObject var bleManager: BLEManager // a class implemented CBCentralManagerDelegate
var body: some View {
// bleConnected is a CBPeripheral
if let bleConnected = bleManager.bleConnected {
if let services = bleConnected.services {
ForEach(services, id:\.self) { service in
// UI for print uuid, descriptions ...
showServiceDescriptionView(services)
if let characteristics = service.characteristics {
ForEach(characteristics, id:\.self) { characteristic in
// UI for print uuid, data for each characteristic
showCharacteristicsDetailView(characteristic)
}
}
}
}
}
}
}
But it seems that Xcode Preview do not support connect to a real bluetooth device. So the preview window in Xcode will always be a empty view.
I only can see the data on the real device. But it's important for me to design UI on the preview. So are there any method to mock a fake CBPeripheral in the Previewer? Or are there any other way to achieve this?