VirgilSecurity / virgil-sdk-x

Virgil Core SDK allows developers to get up and running with Virgil Cards Service API quickly and add end-to-end security to their new or existing digital solutions to become HIPAA and GDPR compliant and more.
https://virgilsecurity.com/
Other
27 stars 5 forks source link

Xcode 14 watchOS building for real devices(arm64) issues #58

Closed jakov-clay closed 1 year ago

jakov-clay commented 1 year ago

I'm having issues when building for watchOS in Xcode 14 for real devices (simulator is fine). I get bunch of issues when linking VirgilCryptoFoundation for arm64 arch. In Xcode 13 works fine, probably related to bunch of changes Xcode 14 introduced for watchOS, now there is only 1 target instead of 2 when creating watchOS app, and new architecture.

Screenshot 2022-10-06 at 12 29 21

My Podfile:

use_frameworks!

target 'Demo' do
  platform :ios, '13.0'
  pod 'VirgilSDK', '8.1.0'

end

target 'DemoWatchOS WatchKit Extension' do
  platform :watchos, '7.0'
  pod 'VirgilSDK', '8.1.0'

end

Tested also with SPM, same result.

Maybe rebuilding libraries with Xcode 14 tools would help solve this issue?

jakov-clay commented 1 year ago

@SergeySeroshtan hey do you maybe have time to check this issue?

SergeySeroshtan commented 1 year ago

Will take a look

jakov-clay commented 1 year ago

@SergeySeroshtan were you able to reproduce issue? any ETA for this? My watch app is blocked by this so any info or help is helpful. Thanks!

SergeySeroshtan commented 1 year ago

Currently have issue with building low level libraries with updated environment. Going to resolve this ASAP. ETA until Oct 24.

SergeySeroshtan commented 1 year ago

Hi @jakov-clay what package manager do you use?

SergeySeroshtan commented 1 year ago

Met the same issue as - https://developer.apple.com/forums/thread/700583

jakov-clay commented 1 year ago

Hi @jakov-clay what package manager do you use?

Cocoa Pods

jakov-clay commented 1 year ago

Met the same issue as - https://developer.apple.com/forums/thread/700583

My issue occurs only in Xcode 14, everything seems to work normally in Xcode 13

jakov-clay commented 1 year ago

If I build for Any watchOS device I get a bit different error.

Screenshot 2022-10-23 at 20 30 18

I'm unsure why this happens. I can test on real watch device, if I can help let me know.

SergeySeroshtan commented 1 year ago

Going to accomplish this issue until tomorrow.

jakov-clay commented 1 year ago

@SergeySeroshtan how it's going? Any progress, problems, updates?

SergeySeroshtan commented 1 year ago

Hi @jakov-clay, I've got problems with Carthage package manager, that won't be able to fix quickly. To unblock your's progress, I've released a new version for Cocoapods - 8.2.0 with arm64 arch for watchOS, please check it.

jakov-clay commented 1 year ago

@SergeySeroshtan I'm confirming that SDK works with latest Xcode on real devices! Thank you very much! I have some problems with my framework but Virgil is running normally.