9.6 C
London
Tuesday, February 20, 2024

ios – Swift Compiler Error (Xcode): Anticipated ‘;’ after prime stage declarator


My app is displaying the next error when making an attempt to compile:

Didn't construct iOS app
Swift Compiler Error (Xcode): Anticipated ';' after prime stage declarator
/Customers/aleferafael/.pub-cache/hosted/pub.dev/rive_common-0.1.0/ios/SheenBidi/Headers/SBCodepointSequence.h:29:10

Swift Compiler Error (Xcode): Anticipated ';' after prime stage declarator
/Customers/aleferafael/.pub-cache/hosted/pub.dev/rive_common-0.1.0/ios/SheenBidi/Headers/SBRun.h:25:15

Swift Compiler Error (Xcode): Unknown sort identify 'SBLineRef'
/Customers/aleferafael/.pub-cache/hosted/pub.dev/rive_common-0.1.0/ios/SheenBidi/Headers/SBLine.h:32:27

Swift Compiler Error (Xcode): Unknown sort identify 'SBLineRef'
/Customers/aleferafael/.pub-cache/hosted/pub.dev/rive_common-0.1.0/ios/SheenBidi/Headers/SBLine.h:42:27

Swift Compiler Error (Xcode): Unknown sort identify 'SBLineRef'
/Customers/aleferafael/.pub-cache/hosted/pub.dev/rive_common-0.1.0/ios/SheenBidi/Headers/SBLine.h:52:29

Swift Compiler Error (Xcode): Unknown sort identify 'SBLineRef'
/Customers/aleferafael/.pub-cache/hosted/pub.dev/rive_common-0.1.0/ios/SheenBidi/Headers/SBLine.h:72:0

Swift Compiler Error (Xcode): Unknown sort identify 'SBLineRef'
/Customers/aleferafael/.pub-cache/hosted/pub.dev/rive_common-0.1.0/ios/SheenBidi/Headers/SBLine.h:72:23

Swift Compiler Error (Xcode): Unknown sort identify 'SBLineRef'
/Customers/aleferafael/.pub-cache/hosted/pub.dev/rive_common-0.1.0/ios/SheenBidi/Headers/SBLine.h:81:19

Swift Compiler Error (Xcode): Unknown sort identify '_SBMirrorLocator'
/Customers/aleferafael/.pub-cache/hosted/pub.dev/rive_common-0.1.0/ios/SheenBidi/Headers/SBMirrorLocator.h:23:9

Swift Compiler Error (Xcode): Anticipated ';' after prime stage declarator
/Customers/aleferafael/.pub-cache/hosted/pub.dev/rive_common-0.1.0/ios/SheenBidi/Headers/SBMirrorLocator.h:28:23

Swift Compiler Error (Xcode): Unknown sort identify 'SBLineRef'
/Customers/aleferafael/.pub-cache/hosted/pub.dev/rive_common-0.1.0/ios/SheenBidi/Headers/SBMirrorLocator.h:52:57

Swift Compiler Error (Xcode): Unknown sort identify 'SBMirrorAgent'; did you imply '_SBMirrorAgent'?
/Customers/aleferafael/.pub-cache/hosted/pub.dev/rive_common-0.1.0/ios/SheenBidi/Headers/SBMirrorLocator.h:60:6
Swift Compiler Error (Xcode): Unknown sort identify 'SBScriptLocatorRef'
/Customers/aleferafael/.pub-cache/hosted/pub.dev/rive_common-0.1.0/ios/SheenBidi/Headers/SBScriptLocator.h:46:35

Swift Compiler Error (Xcode): Unknown sort identify 'SBScriptLocatorRef'
/Customers/aleferafael/.pub-cache/hosted/pub.dev/rive_common-0.1.0/ios/SheenBidi/Headers/SBScriptLocator.h:54:32

Swift Compiler Error (Xcode): Unknown sort identify 'SBScriptLocatorRef'
/Customers/aleferafael/.pub-cache/hosted/pub.dev/rive_common-0.1.0/ios/SheenBidi/Headers/SBScriptLocator.h:66:34

Swift Compiler Error (Xcode): Unknown sort identify 'SBScriptLocatorRef'
/Customers/aleferafael/.pub-cache/hosted/pub.dev/rive_common-0.1.0/ios/SheenBidi/Headers/SBScriptLocator.h:75:26

Swift Compiler Error (Xcode): Too many errors emitted, stopping now

Swift Compiler Error (Xcode): Couldn't construct Goal-C module 'rive_common'

Right here is the Pubspec:

cupertino_icons: ^1.0.2
  firebase_core: ^2.15.1
  firebase_auth: ^4.1.0
  flutter_launcher_icons: ^0.10.0
  lottie: ^1.4.2
  url_launcher: ^6.1.7
  animated_bottom_navigation_bar: ^1.1.0
  glassfy_flutter : ^1.3.1
  cloud_firestore: ^4.4.5
  flutter_native_splash: ^2.2.16
  page_transition: ^2.0.9
  audio_video_progress_bar: ^1.0.1
  rxdart: ^0.27.7
  rive: ^0.11.3
  google_mobile_ads: ^2.4.0
  firebase_messaging: ^14.6.7
  overlay_support: ^2.1.0
  awesome_dialog: ^3.1.0
  firebase_storage: ^11.6.0
  image_picker: ^1.0.6
  firebase_analytics: ^10.8.5
  just_audio_background: ^0.0.1-beta.11
  just_audio: ^0.9.36
  carousel_slider: ^4.2.1
  http: ^0.13.6

It was working usually, however out of nowhere there was an error.
At first I believed it was an error within the pod, however after I tried some instructions, I spotted that they did not work. I created a brand new app with the identical plugins and the errors continued

Latest news
Related news

LEAVE A REPLY

Please enter your comment!
Please enter your name here