Post

Replies

Boosts

Views

Activity

Why Swift Package copy framework to Watch extensions dir
Now I have a project. have two targets App A Watch App B Then I import a swift package Mapbox and add dependency in App A. App A now will Embed Mapbox in section "Framework, Libraries and Embed Content" and Embed Watch App B in "Build Phrase/Embed Watch Content" which is a PBXCopyFilesBuildPhase. It is wired when I build in local, on the Mapbox. framework only copy to under dir AppA/frameworks when executing prhase "Embed Watch Content". But when I compile it on Microsoft App Center. it will copy the Mapbox.framework to WatchAppB/. any idea how to define where the Mapbox.framework to be copied to?
0
0
501
Jun ’21
Why ftp upload will suspend for a long time.
I use CFWriteStreamCreateWithFTPURL to upload to a ftp server. on normal progress, it works well. but when the network is lost and retry, the upload will be suspend for a long time then goback to noraml. my reproduce steps are listed on following. on my phone, I create a CFWriteStreamCreateWithFTPURL to upload during uploading, I close the wifi router on my home, my program will recieve a error then I reopen the wifi router and confirm my phone is connected to it. I recreate a CFWriteStreamCreateWithFTPURL to upload the same file to same ftp server at first, the ftp can upload a little bit, such as serval kbs. then the upload will be suspend. after amost ten minuets, it will then restore again and upload as normal
1
0
505
Oct ’20