Post not yet marked as solved
Hello,
I've been encountering some challenges while working with NWConnectionGroup and NWMulticastGroup for multicast operations on iOS. I have a few doubts and issues that I would like to address:
1. NWMulticastGroup Initialization
It seems that when initializing NWMulticastGroup, only one NWEndpoint can be passed, and attempting to pass multiple endpoints results in failure. Can someone confirm if this behavior is correct?
2. Interface Level Control
Upon initializing NWConnectionGroup, it appears that packets are received on all interfaces without the ability to control this at the interface level. Is this correct? If not is there a way to configure NWConnectionGroup to receive packets on all interfaces?
3. Sending Behavior
During the send operation, it appears that the data is sent through any one of the available interfaces, and there doesn't seem to be an option to configure it to send through all available endpoints. Is there a way to enable sending data through all available endpoints?
Any insights, guidance, or solutions to these issues would be greatly appreciated. Has anyone else encountered similar problems or found workarounds for these limitations?
Thank you for your assistance and support.
Thanks,
Harshal
Post not yet marked as solved
Watch model: A2985
Watch system: 10.4(21T216)
Settings > Privacy can not find Developer Mode in Watch OS 10.4. xcode Recent device can not find this watch device.How do I turn on developer mode in Watch OS 10.4。Watch OS 9.5 can find and open it,but Watch OS 10.4 can not find。
I look forward to hearing from you soon.
Post not yet marked as solved
Dear all,
I want to delete mail app and outlook for mac app saved password (exchange on-promised server) in keychain (macOS big sur 11.7.10).
I can delete outlook for mac app's password by command: security delete-generic-password -l "Exchange"
But I cannot delete mail app's password by command: security delete-generic-password -l "com.apple.account.Exchange.password"
Please provide the right command. Thanks in advanced.
Post not yet marked as solved
I am facing an issue in incrementing the build number automatically. All scripts are working fine but the script for auto-increment build number is not incrementing.
id: increment_build
run: |
# Fetch current build number from your project
CURRENT_BUILD_NUMBER=$(xcrun agvtool what-version -terse)
# Output the current build number
echo "Current build number is: $CURRENT_BUILD_NUMBER"
# Increment build number
NEW_BUILD_NUMBER=$((CURRENT_BUILD_NUMBER + 1))
# Output the new build number
echo "::set-output name=new_build_number::$NEW_BUILD_NUMBER"
- name: Set build number
run: |
INFO_PLIST="Info.plist"
NEW_BUILD_NUMBER="${{ steps.increment_build.outputs.new_build_number }}"
# Check if CFBundleVersion entry exists, create it if it doesn't
if /usr/libexec/PlistBuddy -c "Print :CFBundleVersion" "$INFO_PLIST" >/dev/null 2>&1; then
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $NEW_BUILD_NUMBER" "$INFO_PLIST"
else
/usr/libexec/PlistBuddy -c "Add :CFBundleVersion string $NEW_BUILD_NUMBER" "$INFO_PLIST"
fi
I have 3 env's in my project for which I have created 3 .xconfig files for keeping the config separately. In build setting, I have used $(APP_BUILD) for APP_Build under the User-Defined section.
Post not yet marked as solved
After adopting sidebar / split view controller support in Mac Catalyst, there are several UI side effects that make the default title bar stick out and look inconsistent. If I hide the title bar however,
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
guard let windowScene = (scene as? UIWindowScene) else { return }
#if targetEnvironment(macCatalyst)
if let titlebar = windowScene.titlebar {
titlebar.titleVisibility = .hidden
titlebar.toolbar = nil
}
#endif
}
the ability to double click the top of the window to maximize it is lost. What would be the simplest approach to have both the hidden appearance, but keep the double click behavior?
Post not yet marked as solved
I'm trying to generate a developer token with the following code in nodeJS:
const jwt = require('jsonwebtoken')
const {TEAM_ID, KID, APPLE_PRIVATE_KEY } = require('./secret')
const expiration = 36000;
const currentTime = Math.floor(Date.now() /1000);
const expirationTime = currentTime + expiration;
const options = {
algorithm: 'ES256',
header :{
alg : "ES256",
kid : KID
}
}
const payload = {
iss : TEAM_ID,
iat : currentTime,
exp : expirationTime
}
const newToken = jwt.sign(payload, APPLE_PRIVATE_KEY, options)
console.log('1111111111111111111111' , newToken)
When testing my newToken in curl -- I'm getting a 401 response.
Please help.
Post not yet marked as solved
I've been getting this log.txt pop up on my documents and I don't know what it's about. I looked online and it saying its debugging my system but my macbook is new that i dont know why it would be doing so. Everytime i try and move it to trash and restart my laptop, it just pops back up. Why is it doing this?
Post not yet marked as solved
Leaks issue
Hello everyone. I was using command line leaks tool with my C programms and everything worked well till the very last update. It justy stopped working after latest Sonoma update.
Terminal and iTerm has it's permissions to access to the filesystem:
But it seems it's not enough: it still gives me issue either when I'm trying to call system leaks from function
void ft_leaks(void)
{
system("leaks -q <progname>");
}
After a few tries I decided to find out what's going on and included this statement
void ft_leaks(void)
{
int result;
result = system("leaks -q ./cub3D");
if (result != 0)
{
printf(RED"Error: system command failed with code %d\n"RST, result);
}
}
The output received was:
Error: system command failed with code 9
I was trying to swith off the SIP, but didn't work.
What the issue can it be?
Many thx in advance for a constructive response🤠
Post not yet marked as solved
Hi,
I am trying to create a new Identifier for my app. When I write down the Bundle ID I am getting this popup:
An attribute in the provided entity has invalid value
An App ID with Identifier 'de.{domain}.app is not available. Please enter a different string.
Can anyone please help? The domain is mine and no apps have been released yet. I can't find a solution for this
Post not yet marked as solved
Hi I'm getting this issue:
Crashed: com.apple.network.connections
0 libsystem_kernel.dylib 0xa974 __pthread_kill + 8
1 libsystem_pthread.dylib 0x60ec pthread_kill + 268
2 libsystem_c.dylib 0x75b80 abort + 180
3 libsystem_malloc.dylib 0x2bc68 malloc_vreport + 896
4 libsystem_malloc.dylib 0x2bf10 malloc_zone_error + 104
5 libsystem_malloc.dylib 0x21a44 nanov2_guard_corruption_detected + 44
6 libsystem_malloc.dylib 0x7f84 nanov2_find_block_and_allocate + 402
7 libc++abi.dylib 0x16b84 operator new(unsigned long) + 52
8 Network 0x7e8c void std::__1::vector<nw_object_wrapper_t, std::__1::allocator<nw_object_wrapper_t> >::__emplace_back_slow_path<nw_object*&>(nw_object*&) + 124
9 Network 0x7dd8 nw_array_append + 280
10 Network 0xc3d0 __nw_resolver_insert_endpoint_locked_block_invoke + 1036
11 Network 0xbd80 nw_array_apply + 124
12 Network 0x77250 nw_resolver_insert_endpoint_locked + 256
13 Network 0x770b8 nw_resolver_insert_address + 1356
14 Network 0x29a850 __nw_resolver_create_dns_getaddrinfo_locked_block_invoke.187 + 7836
15 libdns_services.dylib 0x1000 ___dnssd_getaddrinfo_activate_block_invoke + 216
16 libdispatch.dylib 0x3dd4 _dispatch_client_callout + 20
17 libdispatch.dylib 0x72d8 _dispatch_continuation_pop + 600
18 libdispatch.dylib 0x1b1c8 _dispatch_source_latch_and_call + 420
19 libdispatch.dylib 0x19d8c _dispatch_source_invoke + 832
20 libdispatch.dylib 0xd284 _dispatch_workloop_invoke + 1756
21 libdispatch.dylib 0x16cb4 _dispatch_root_queue_drain_deferred_wlh + 288
22 libdispatch.dylib 0x16528 _dispatch_workloop_worker_thread + 404
23 libsystem_pthread.dylib 0x1f20 _pthread_wqthread + 288
24 libsystem_pthread.dylib 0x1fc0 start_wqthread + 8
Post not yet marked as solved
Hey
2 years ago I joined WWDC and had the pleasure to have 1 on 1 call with some1 from dev team from Apple to help me solve some at the time GPU rendering problems on Apple iPad.
I wonder if u guys know if this year Apple will also let us book meetings like that to help solve dev problems?
Post not yet marked as solved
Using SwiftUI how can I get the click of a "Button" to change the wording of a "Label" and/or "Text" Field?
I have tried:-
let myLabel = Label {
Text("Text to be Changed"
.foregrorundStyle ......
} icon: {
......
}
....
.....
Button("Change Label Wording"){
myLabel.stringValue = "Changed text"
}
This gives me two problems (at least):
I cannot get the label to display
The myLabel.stringValue = "Changed text gives me the error:
Type '()' cannot conform to 'View'
Value of type 'Label<some View, some View>' has no member 'stringValue'
What have I done wrong?
Post not yet marked as solved
Hello, fairly new to Swift, I come from a React Native background. One of the hardest things I'm finding is simply customising the screen headers in the navigation. I've managed to do it using a custom modifier that uses .toolbar and ToolbarItem as shown below:
struct NavBar: ViewModifier {
let title: String
let showBackButton: Bool?
@Environment(\.dismiss) private var dismiss
func body(content: Content) -> some View {
return content
.toolbar {
if showBackButton == true {
ToolbarItemGroup(placement: .navigationBarLeading) {
Button(action: {
dismiss()
}) {
Image("BackButton")
}.padding(.top, 18)
}
}
ToolbarItem(placement: .principal) {
Text(title)
.font(Font.custom("Knight Vision", size: 28))
.foregroundColor(.white).padding(.top, 20)
}
}
.navigationBarBackButtonHidden(true)
}
}
This is all fine and suits my needs however I'm finding that the toolbar does not slide in with the rest of the screen when navigating to as screen with it on. I would expect the title to slide in with the other items on the screen. Especially since the toolbar does animate out, it just does not animate in.
Heres a video so you can see what I mean. Am I doing something wrong here? Is there a better way to do this?
[linkText](https://www.youtube.com/shorts/6M-glapBZz0
/)
Post not yet marked as solved
Criticism of the use of the Minimed Mobile App, problem with the update interval of the Apple Watch iOS
Subject: Error event - Minimed Mobile App . Triggered by insufficient update interval of the Watch iOS system of only 50 updates/day
Dear Sir or Madam,
I use the Minimed Mobile App in conjunction with my Medtronic 780 G insulin pump and am generally very satisfied with the app. However, I have noticed a point here that is caused by the Apple Watch iOS operating system. I would like to pass this on and ask that you please fix this problem with an update.
Updating the sensor values on watch faces on the Apple Watch
I use the Modular widget on my Apple Watch in conjunction with the Minimed mobile app to quickly and easily keep an eye on the current sensor value. Unfortunately, the sensor value in this widget is not updated automatically according to someone in the know, Apple only updates widget information 50 times a day. After a short time, a rotating arrow appears instead of the current value, which I have to press to get a sensor value displayed again in order to see the current value.
This is very inconvenient as I have to perform several actions each time to see the current value:
1.Open widget
2.Press the rotary arrow
3.Read the value
Close widget by pressing the spin button at the top right to return to the main screen
I would very much welcome it if the sensor value in Apple Watch watch faces were updated automatically, the problem is obvious - the watch faces only update 50 times a day. This would prevent me from seeing the current sensor value quickly and easily at any time without having to perform additional and cumbersome actions.
The Minimed Mobile App has been tested and approved by Medtronic through Apple. However, it must have been overlooked that this sensor value app updates the sensor value every 5 minutes, but it does not do this on the dial because, according to my friend, it only updates 50 times a day. Now it is the case that the sensor value can change every 5 minutes, but this is not shown on the watch face, which means that the Apple Watch iOS would need 288 updates for this Minimed Mobile App per day instead of only 50 updates per day.
Can you please advocate for a new update that allows an update interval of up to 288 updates per day? So that thousands of diabetics worldwide can see current values on their Apple Watch dials at any time? Without having to take several steps each time? I switched to I Phone and Apple Watch because I thought this would be possible for me. I would be very happy to hear back if this is technically possible for all diabetics worldwide who will benefit from it.
With kind regards
Post not yet marked as solved
Hello,
Prior to iOS 17, it was possible to request user discoverability by calling ‚requestApplicationPermission‘. But now it is deprecated. How is the intended way to do this now? How this is for example handled in the Music App? I think this should be a similar approach.
Currently the only option for me seems to save the Email-Address (and maybe phone number) in the CloudKit public database, that other user can discover by this. But that the problem exists, that we need to fetch for changes at phone numbers and mail addresses that are linked to the iCloud account (because user might change anything). Is there a more elegant solution, than just checking the current email addresses and phone numbers at each start of the application (if that is even possible)?
For example the Music App has that Switch "Find my by Apple-ID" but I don't know how this is handled in the background.
Thanks!
Post not yet marked as solved
大发彩票app下载【筷三凝聚梦想】【永盈成就辉煌】【购彩首选】【全网第一】 【誉响彩界】【 问鼎巅峰】 没有那么多天赋异禀,优秀的人总是努力的翻山越岭,要么不做,要做就做第一!没有做不到的事只有你愿不愿意做,做的人已经上岸了,若你还是不敢做只能看著他们上岸,已经有个理想的计划,但从未有赴之行动的举动,那你永远都只能是想像,你想成为上岸的那个人,还是想成为看人上岸的那个人,这些都决定于你。专业的事留给专业的人做,才是获得成功的捷径。我想帮助更多的人,互联网是一个开放性平台,上面充斥着各式各样的优惠,如何在铺面而来的诱惑中选出心仪的方向。
一个好的平台可以让你后顾无忧,可以尽情释放自己的手脚,不会存在掣肘。穷则思变,差则思勤!没有比人更高的山没有比脚更长的路。
原以为“得不到”和“已失去”是最珍贵的,可…原来把握眼前才是最重要的。
失败是什么?没有什么,只是更走近成功一步;成功是什么?就是走过了所有通向失败的路,只剩下一条路,那就是成功的路
Post not yet marked as solved
Preface
Upon rotating the interface, the UICollectionViewCells overlap, generating an unpleasant animation that for sure can't be used in production.
The code
The code was executed on iPhone 6S (NN0W2TU/A A1688) with iOS 15.8.2. I could reproduce the issue on iPhone 15 Pro with iOS 17 on simulator as well.
SelfConfiguringCell.swift:
import UIKit
protocol SelfConfiguringCell: UICollectionViewCell {
static var reuseIdentifier: String { get }
func configure(with image: String)
}
ISVImageScrollView.swift: Code here
CarouselCell.swift:
import UIKit
import SnapKit
class CarouselCell: UICollectionViewCell, SelfConfiguringCell, UIScrollViewDelegate {
static var reuseIdentifier: String = "carousel.cell"
internal var image: String = "placeholder" {
didSet {
self.imageView = UIImageView(image: UIImage(named: image))
self.scrollView.imageView = self.imageView
}
}
let scrollView: ISVImageScrollView = {
let scrollView = ISVImageScrollView()
scrollView.minimumZoomScale = 1.0
scrollView.maximumZoomScale = 30.0
scrollView.zoomScale = 1.0
scrollView.contentOffset = .zero
scrollView.bouncesZoom = true
return scrollView
}()
var imageView: UIImageView = {
let image = UIImage(named: "placeholder")!
let imageView = UIImageView(image: image)
return imageView
}()
func setImage(_ image: String) {
self.image = image
}
func configure(with image: String) {
self.setImage(image)
self.scrollView.snp.makeConstraints { make in
make.left.top.right.bottom.equalTo(contentView)
}
}
override init(frame: CGRect) {
super.init(frame: frame)
contentView.backgroundColor = UIColor.black
scrollView.delegate = self
scrollView.imageView = self.imageView
contentView.addSubview(scrollView)
}
required init?(coder: NSCoder) {
fatalError("Cannot init from storyboard")
}
func viewForZooming(in scrollView: UIScrollView) -> UIView? {
return self.imageView
}
}
ViewController:
import UIKit
class ViewController: UICollectionViewController {
var currentPage: IndexPath? = nil
let images = ["police", "shutters", "depot", "cakes", "sign"]
init() {
let compositionalLayout = UICollectionViewCompositionalLayout { sectionIndex, environment in
let absoluteW = environment.container.effectiveContentSize.width
let absoluteH = environment.container.effectiveContentSize.height
// Handle landscape
if absoluteW > absoluteH {
print("landscape")
let itemSize = NSCollectionLayoutSize(
widthDimension: .fractionalWidth(1),
heightDimension: .fractionalHeight(1)
)
let item = NSCollectionLayoutItem(layoutSize: itemSize)
let groupSize = NSCollectionLayoutSize(
widthDimension: .fractionalWidth(1),
heightDimension: .fractionalHeight(1)
)
let group = NSCollectionLayoutGroup.horizontal(layoutSize: groupSize, subitems: [item])
let section = NSCollectionLayoutSection(group: group)
return section
} else {
// Handle portrait
print("portrait")
let itemSize = NSCollectionLayoutSize(
widthDimension: .fractionalWidth(1.0),
heightDimension: .absolute(absoluteW * 9.0/16.0)
)
let item = NSCollectionLayoutItem(layoutSize: itemSize)
let groupSize = NSCollectionLayoutSize(
widthDimension: .fractionalWidth(1.0),
heightDimension: .absolute(absoluteW * 9.0/16.0)
)
let group = NSCollectionLayoutGroup.horizontal(layoutSize: groupSize, subitems: [item])
let section = NSCollectionLayoutSection(group: group)
return section
}
}
let config = UICollectionViewCompositionalLayoutConfiguration()
config.interSectionSpacing = 0
config.scrollDirection = .horizontal
compositionalLayout.configuration = config
super.init(collectionViewLayout: compositionalLayout)
}
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
override func viewDidLoad() {
super.viewDidLoad()
collectionView.delegate = self
collectionView.dataSource = self
collectionView.isPagingEnabled = true
// Register cell for reuse
collectionView.register(CarouselCell.self, forCellWithReuseIdentifier: CarouselCell.reuseIdentifier)
}
override func numberOfSections(in collectionView: UICollectionView) -> Int {
return 1
}
override func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
return self.images.count
}
override func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
guard let reusableCell = collectionView.dequeueReusableCell(withReuseIdentifier: CarouselCell.reuseIdentifier, for: indexPath) as? CarouselCell else {
fatalError()
}
let index : Int = (indexPath.section * self.images.count) + indexPath.row
reusableCell.configure(with: self.images[index])
return reusableCell
}
}
Notes
I found a similar unanswered question here. I'm sure something can be done about it because if I switch to SwiftUI with a TabView, that according to SwiftUI Introspect documentation for TabViewWithPageStyleType, is using UICollectionView under the hood, I'm not getting that ugly animation anymore. Though I can't switch to SwiftUI to use TabView because on interface rotation it loses the page index (well known bug, see here), which probably is even trickier to workaround.
Post not yet marked as solved
Since yesterday when I try to open App Store Connect app on iOS I get: app store connect is temporarily unavailable due to planned maintenance
On the desktop website there's no problem and also on Apple Services status website there's no outages. Someone having the same problem?
Post not yet marked as solved
Environment
Apple Silicon M1 Pro
macOS 14.4
Xcode 15.3 (15E204a)
visionOS simulator 1.1
Step
Create a new visionOS app project and compile it through xcodebuild:
xcodebuild -destination "generic/platform=visionOS"
It fails on RealityAssetsCompile with log :
error: Failed to find newest available Simulator runtime
But if I open the Xcode IDE and start building, it works fine. This error only occurs in xcodebuild.
More
I noticed that in xcrun simctl list the vision pro simulator is in unavailable state:
-- visionOS 1.1 --
Apple Vision Pro (6FB1310A-393E-4E82-9F7E-7F6D0548D136) (Booted) (unavailable, device type profile not found)
And i can't find the vision pro device type in xcrun simctl list devicetypes, does it matter? I have tried to completely reinstall Xcode and simulator runtime, but still the same error.
Post not yet marked as solved
I have generated FCPXML, but i can't figure out issue:
<?xml version="1.0"?>
<fcpxml version="1.11">
<resources>
<format id="r1" name="FFVideoFormat3840x2160p2997" frameDuration="1001/30000s" width="3840" height="2160" colorSpace="1-1-1 (Rec. 709)"/>
<asset id="video0" name="11a(1-5).mp4" start="0s" hasVideo="1" videoSources="1" duration="6.81s">
<media-rep kind="original-media" src="file:///Volumes/Dropbox/RealMedia Dropbox/Real Media/Media/Test/Test AE videos, City, testOLOLO/video/11a(1-5).mp4"/>
</asset>
<asset id="video1" name="12(4)r8 mute.mp4" start="0s" hasVideo="1" videoSources="1" duration="9.94s">
<media-rep kind="original-media" src="file:///Volumes/Dropbox/RealMedia Dropbox/Real Media/Media/Test/Test AE videos, City, testOLOLO/video/12(4)r8 mute.mp4"/>
</asset>
<asset id="video2" name="13 mute.mp4" start="0s" hasVideo="1" videoSources="1" duration="6.51s">
<media-rep kind="original-media" src="file:///Volumes/Dropbox/RealMedia Dropbox/Real Media/Media/Test/Test AE videos, City, testOLOLO/video/13 mute.mp4"/>
</asset>
<asset id="video3" name="13x (8,14,24,29,38).mp4" start="0s" hasVideo="1" videoSources="1" duration="45.55s">
<media-rep kind="original-media" src="file:///Volumes/Dropbox/RealMedia Dropbox/Real Media/Media/Test/Test AE videos, City, testOLOLO/video/13x (8,14,24,29,38).mp4"/>
</asset>
</resources>
<library>
<event name="Untitled">
<project name="Untitled Project" uid="28B2D4F3-05C4-44E7-8D0B-70A326135EDD" modDate="2024-04-17 15:44:26 -0400">
<sequence format="r1" duration="4802798/30000s" tcStart="0s" tcFormat="NDF" audioLayout="stereo" audioRate="48k">
<spine>
<asset-clip ref="video0" offset="0/10000s" name="11a(1-5).mp4" duration="0/10000s" format="r1" tcFormat="NDF"/>
<asset-clip ref="video1" offset="12119/10000s" name="12(4)r8 mute.mp4" duration="0/10000s" format="r1" tcFormat="NDF"/>
<asset-clip ref="video2" offset="22784/10000s" name="13 mute.mp4" duration="0/10000s" format="r1" tcFormat="NDF"/>
<asset-clip ref="video3" offset="34544/10000s" name="13x (8,14,24,29,38).mp4" duration="0/10000s" format="r1" tcFormat="NDF"/>
</spine>
</sequence>
</project>
</event>
</library>
</fcpxml>
Any ideas?