abo-el30la / zoom_native_sdk

Apache License 2.0
17 stars 11 forks source link

got error while running in iOS #10

Open aadarsha07 opened 11 months ago

aadarsha07 commented 11 months ago

Swift Compiler Error (Xcode): No such module 'MobileRTC'

aadarsha07 commented 11 months ago

Could not build the precompiled application for the device. Swift Compiler Error (Xcode): No such module 'MobileRTC' /Users/aadarsha/.pub-cache/hosted/pub.dev/zoom_native_sdk-0.3.5/ios/Classes/SwiftZoomNativeSdkPlugin.swift:2:7 SwiftZoomNativeSdkPlugin.swift:2

aadarsha07 commented 11 months ago

it is running now,

vaibhav936 commented 11 months ago

are you able to archive and upload the build?

aadarsha07 commented 11 months ago

are you able to archive and upload the build?

yes

vaibhav936 commented 10 months ago

Am Getting the Below error while archiving can you help here?

“MobileRTC.xcframework-ios.signature” couldn’t be copied to “Signatures” because an item with the same name already exists. Domain: NSCocoaErrorDomain Code: 516 Failure Reason: A file with the name “MobileRTC.xcframework-ios.signature” already exists. Recovery Suggestion: To save the file, either provide a different name, or move aside or delete the existing file, and try again. User Info: { DVTErrorCreationDateKey = "2023-12-20 12:02:34 +0000"; NSDestinationFilePath = "/Users/vaibhavpandey/Library/Developer/Xcode/Archives/2023-12-20/Runner 20-12-23, 5.32\U202fPM.xcarchive/Signatures/MobileRTC.xcframework-ios.signature"; NSFilePath = "/Users/vaibhavpandey/Library/Developer/Xcode/DerivedData/Runner-exlpmakyzufyglcvinmopkgekijx/Build/Intermediates.noindex/ArchiveIntermediates/Runner/BuildProductsPath/Release-iphoneos/MobileRTC.xcframework-ios.signature"; NSSourceFilePathErrorKey = "/Users/vaibhavpandey/Library/Developer/Xcode/DerivedData/Runner-exlpmakyzufyglcvinmopkgekijx/Build/Intermediates.noindex/ArchiveIntermediates/Runner/BuildProductsPath/Release-iphoneos/MobileRTC.xcframework-ios.signature"; NSUserStringVariant = ( Copy ); }

The operation couldn’t be completed. File exists Domain: NSPOSIXErrorDomain Code: 17 Failure Reason: File exists

System Information

macOS Version 14.2.1 (Build 23C71) Xcode 15.0 (22265) (Build 15A240d) Timestamp: 2023-12-20T17:32:34+05:30

aadarsha07 commented 10 months ago

Open workspace then go to runner -> build phases > tap + icon to new run script phase then write this if [ "$XCODE_VERSION_MAJOR" = "1500" ]; then echo "Remove signature files (Xcode 15 workaround)" rm "$BUILD_DIR/Release-iphoneos/MobileRTC.xcframework-ios.signature" fi

and enable for install build only

vaibhav936 commented 10 months ago

Wow! It worked Thanks appreciate it! it also really helpful if you can explain the working of the above code !!!

Sabari-nath-p commented 10 months ago

Could not build the precompiled application for the device. Swift Compiler Error (Xcode): No such module 'MobileRTC' /Users/aadarsha/.pub-cache/hosted/pub.dev/zoom_native_sdk-0.3.5/ios/Classes/SwiftZoomNativeSdkPlugin.swift:2:7 SwiftZoomNativeSdkPlugin.swift:2

how will you solve this issue

vaibhav936 commented 10 months ago
Screenshot 2023-12-25 at 7 42 51 PM

also

Screenshot 2023-12-25 at 7 45 51 PM
Sabari-nath-p commented 10 months ago

Its worked ,thankyou so much for your support