Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse Issue (Xcode): Invalid storage class specifier in function declarator #8303

Closed
AngeloAvv opened this issue Jul 15, 2023 · 1 comment
Closed

Comments

@AngeloAvv
Copy link

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

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

  1. Create a Flutter Plugin
  2. Add RealmSwift as a dependency in the Podspec
  3. Try to run the example project
  4. 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

@tgoyne
Copy link
Member

tgoyne commented Jul 15, 2023

We do not support Xcode 13 as it can no longer be used for submitting apps to the app store. The minimum supported version is 14.1.

@sync-by-unito sync-by-unito bot removed the T-Bug label Sep 12, 2023
@nirinchev nirinchev closed this as not planned Won't fix, can't repro, duplicate, stale Feb 5, 2024
@sync-by-unito sync-by-unito bot closed this as completed Feb 5, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants