Post

Replies

Boosts

Views

Activity

Too many swift file can affect build time?
I have some questions to apple team. Too many swift file can make build time slow? There is a large file like a kind of UIViewController. it confirms to a lot of protocol. like UICollectionViewDataSource, UICollectionViewDelegate and some one. Which one better? first, Just write it down one file or divide it into separated files to confirm each protocol. Thanks!
1
0
248
Nov ’22
The amount of source code files can affect the build time?
Hi I have joined an iOS development team about 3 month ago. When I run the code, It takes too long time to build. Even though in the incremental build time too. It needs about 2 minutes to run every single time. I have tried to find why it is too slow and I guess the amount of swift code file is. There are 4,000 swift code files and the dependency is very complicated. So... In a short, the number of source files can make build slower? Please save me! Thanks!
2
0
731
Jul ’21
Xcode build too slow especially 'Merge swift module (x86_64)
Hi I tried to build my application with Xcode 12. I have struggled with a bad problem which is very very slow to build or index to my app. I looked the 'show the report navigator' tab and build messages and I find Compile swift source files(x86_64) 300.3 seconds Precompiling bridging header (x86_64) Compile AAA.swift (x86_64) Merge swiftmodule (x86_64) the 'Merge swiftmodule' process is especially slow. There are any document or tips I can fix it ? Please let me know how to improve and why it occur. thanks.
1
0
774
May ’21
URLSessionWebSocketTask on watchOS 7 when AVAudioSession Activated.
Hi I'm sorry to write this question. I 'm developing the watchOS audio streaming application. I'm using AVPlayer and URLSessionWebSocketTask. the process like this. create the webSocket like this: let socketURL = URL(string:"wss://test.com") var request = URLRequest(url: socketURL) request.networkServiceType = .avStreaming URLSession(configuration: .default, delegate: self, delegateQueue: nil).webSocketTask(with: request) 2. add receiver to URLSessionWebSocketTask. 3. send parameter through URLSessionWebSocketTask and receive track's CDN url without any connection error. 4. After receiving the CND's url, activate the AVAudioSession and just play it with AVPlayer. 5. when the 'AVPlayerItemDidPlayToEndTime' notification called, send URLSessionWebSocketTask with next playItem's parameter and waiting for receive CND's url. But the problem is here. The connection is disconnected. and I received error. The log is here. THE ERROR: Error Domain=NSPOSIXErrorDomain Code=57 "Socket is not connected" UserInfo={NSErrorFailingURLKey=wss://test.com, NSErrorFailingURLStringKey=wss://test.com} I think when the AVAudioSession activated, I can send and receive anything through URLWebSocket. But it is not true. Could you tell me where the problem is? please... thanks.
0
0
650
Nov ’20
watchOS background request when AudioSession active.
Hi. I have been developing the watchOS audio application. But I have faced a big problem. I enabled the background mode for audio and make the AudioSession active. I watched WWDC(maybe... Keeping Your Watch App Up to Date) that says when the AudioSession Active, I can request using URLSession. So. When I played the audio content with AVPlayer and after the content is finished, I request a new URL for CDN server and the CDN would tells me the real audio content's URL. But in background, the URLSession does not respond to my request. So my audio app will stop(exactly wait for response). I read a document about 'Running watchOS Apps in the Background' and I think request to schedule a background task can be a solution. But when I tried it, This operation not guaranteed the expected time. So... Please let me know how to do in this situation. Thanks.
1
0
434
Nov ’20
WatchOS 7 background url tasks not working.
Hello. I have developed the audio streaming app from watchOS6 to current. Now I have a critical bug in watchOS7. Our business process is like that. fetch the address of audio-content from server. make the URLAsset with the address. Play with AVPlayer and URLAsset what I have made. this process worked very well on watchOS6. But now, I face the problem fetching the address in background not working perfectly. I made URLSession with background configuration(Making Background Requests) Also, sometimes even if there was a correct URL, but cannot play next track. Please give me any help... thanks.
6
0
900
Oct ’20
WatchOS storage limit.
Hello I'm developing watchOS audio streaming application. I have developed my own cache system with CoreData and Apple's file system. I saved my audio data in this structure "Library > Application Support > my own sub directory." But I haven't find any document about watchOS storage's limit. There are too many rumors about it. Please let me know the exact limit value. Thanks.
1
0
457
Jul ’20
the view above the now playing view on watchOS
Hi. I am a Korean so my English is not perfect ... please understand itLet`s check the link below.https://help.apple.com/assets/5DADE53F680CE2176254AEEA/5DADE546680CE2176254AEF4/en_US/4845cb1e2a5bb621ab5d37f029dc6606.pngYou could see 3 buttons for more options on the now playing view.In the document of apple, we cannot add any views on the now playing view.So how can I do this like apple's application. please save me.
5
0
1.1k
May ’20