-
Type: Bug
-
Resolution: Won't Fix
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: None
How frequently does the bug occur?
Always
Description
When trying to include RealmSwift into a Flutter Plugin, the example app doesn't start.
The goal is to create a plugin to import data from an existing realm database as we're migrating two native apps (Android and iOS) to Flutter.
Here's the podspec file:
# # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html. # Run `pod lib lint database_importer.podspec` to validate before publishing. # Pod::Spec.new do |s| s.name = 'database_importer' s.version = '0.0.1' s.summary = 'A plugin to import previous database versions' s.description = <<-DESC A plugin to import previous database versions DESC s.source = { :path => '.' } s.source_files = 'Classes/**/*' s.dependency 'Flutter' s.dependency 'RealmSwift' s.platform = :ios, '12.0' # Flutter.framework does not contain a i386 slice. s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' } s.swift_version = '5.0' end
Stacktrace & log output
Unable to find source-code formatter for language: shell. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
Launching lib/main.dart on iPhone 13 Pro Max in debug mode... Warning: Missing build name (CFBundleShortVersionString). Warning: Missing build number (CFBundleVersion). Action Required: You must set a build name and number in the pubspec.yaml file version field before submitting to the App Store. Running Xcode build... Xcode build done. 2,2s Failed to build iOS app Parse Issue (Xcode): Invalid storage class specifier in function declarator /Users/angeloavv/Company/database_importer/example/ios/Pods/Realm/include/RLMConstants.h:62:0 Parse Issue (Xcode): Parameter named 'RLMPropertyType' is missing /Users/angeloavv/Company/database_importer/example/ios/Pods/Realm/include/RLMConstants.h:62:33 Parse Issue (Xcode): Declaration does not declare a parameter /Users/angeloavv/Company/database_importer/example/ios/Pods/Realm/include/RLMConstants.h:62:8 Parse Issue (Xcode): Invalid storage class specifier in function declarator /Users/angeloavv/Company/database_importer/example/ios/Pods/Realm/include/RLMConstants.h:103:0 Semantic Issue (Xcode): 'swift_wrapper' attribute only applies to typedefs /Users/angeloavv/Company/database_importer/example/ios/Pods/Realm/include/RLMConstants.h:103:35 Parse Issue (Xcode): Parameter named 'RLMNotification' is missing /Users/angeloavv/Company/database_importer/example/ios/Pods/Realm/include/RLMConstants.h:103:19 Semantic Issue (Xcode): Unknown type name 'RLMNotification' /Users/angeloavv/Company/database_importer/example/ios/Pods/Realm/include/RLMConstants.h:116:7 Parse Issue (Xcode): Invalid storage class specifier in function declarator /Users/angeloavv/Company/database_importer/example/ios/Pods/Realm/include/RLMConstants.h:116:0 Parse Issue (Xcode): Parameter named 'RLMRealmRefreshRequiredNotification' is missing /Users/angeloavv/Company/database_importer/example/ios/Pods/Realm/include/RLMConstants.h:116:29 Semantic Issue (Xcode): Unknown type name 'RLMNotification' /Users/angeloavv/Company/database_importer/example/ios/Pods/Realm/include/RLMConstants.h:131:7 Parse Issue (Xcode): Invalid storage class specifier in function declarator /Users/angeloavv/Company/database_importer/example/ios/Pods/Realm/include/RLMConstants.h:131:0 Parse Issue (Xcode): Parameter named 'RLMRealmDidChangeNotification' is missing /Users/angeloavv/Company/database_importer/example/ios/Pods/Realm/include/RLMConstants.h:131:29 Parse Issue (Xcode): Invalid storage class specifier in function declarator /Users/angeloavv/Company/database_importer/example/ios/Pods/Realm/include/RLMConstants.h:136:0 Parse Issue (Xcode): Parameter named 'RLMBackupRealmConfigurationErrorKey' is missing /Users/angeloavv/Company/database_importer/example/ios/Pods/Realm/include/RLMConstants.h:136:24 Parse Issue (Xcode): Invalid storage class specifier in function declarator /Users/angeloavv/Company/database_importer/example/ios/Pods/Realm/include/RLMConstants.h:141:0 Parse Issue (Xcode): Parameter named 'RLMNotVersioned' is missing /Users/angeloavv/Company/database_importer/example/ios/Pods/Realm/include/RLMConstants.h:141:22 Parse Issue (Xcode): Invalid storage class specifier in function declarator /Users/angeloavv/Company/database_importer/example/ios/Pods/Realm/include/RLMConstants.h:144:0 Parse Issue (Xcode): Parameter named 'RLMExceptionName' is missing /Users/angeloavv/Company/database_importer/example/ios/Pods/Realm/include/RLMConstants.h:144:24 Parse Issue (Xcode): Invalid storage class specifier in function declarator /Users/angeloavv/Company/database_importer/example/ios/Pods/Realm/include/RLMConstants.h:147:0 Error (Xcode): too many errors emitted, stopping now Could not build the application for the simulator. Error launching application on iPhone 13 Pro Max.
Can you reproduce the bug?
Always
Reproduction Steps
- Create a Flutter Plugin
- Add RealmSwift as a dependency in the Podspec
- Try to run the example project
- Failed to build iOS app
Version
10.41.0
What Atlas Services are you using?
Local Database only
Are you using encryption?
No
Platform OS and version(s)
macOS Monterey 12.0.1 and iOS 13
Build environment
Xcode version: 13.4.1
Flutter 3.7.12