While integrating SQLCipher with cocoapods I’m getting multiple redefinition errors.
Version: 4.5.2
<module-includes>:2:9: note: in file included from <module-includes>:2:
#import "sqlite3ext.h"
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:
#include <sqlite3.h>
^
/Users/mukeshyadav/Library/Developer/Xcode/DerivedData/MindTickle-buzymtagwbmstehjmknrjcjxuysn/Build/Products/Debug-iphonesimulator/SQLCipher/SQLCipher.framework/Headers/sqlite3.h:723:8: error: redefinition of 'sqlite3_file'
struct sqlite3_file {
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3.h:735:8: note: previous definition is here
struct sqlite3_file {
^
<module-includes>:2:9: note: in file included from <module-includes>:2:
#import "sqlite3ext.h"
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:
#include <sqlite3.h>
^
/Users/mukeshyadav/Library/Developer/Xcode/DerivedData/MindTickle-buzymtagwbmstehjmknrjcjxuysn/Build/Products/Debug-iphonesimulator/SQLCipher/SQLCipher.framework/Headers/sqlite3.h:822:8: error: redefinition of 'sqlite3_io_methods'
struct sqlite3_io_methods {
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3.h:834:8: note: previous definition is here
struct sqlite3_io_methods {
^
<module-includes>:2:9: note: in file included from <module-includes>:2:
#import "sqlite3ext.h"
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:
#include <sqlite3.h>
^
/Users/mukeshyadav/Library/Developer/Xcode/DerivedData/MindTickle-buzymtagwbmstehjmknrjcjxuysn/Build/Products/Debug-iphonesimulator/SQLCipher/SQLCipher.framework/Headers/sqlite3.h:1427:8: error: redefinition of 'sqlite3_vfs'
struct sqlite3_vfs {
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3.h:1439:8: note: previous definition is here
struct sqlite3_vfs {
^
<module-includes>:2:9: note: in file included from <module-includes>:2:
#import "sqlite3ext.h"
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:
#include <sqlite3.h>
^
/Users/mukeshyadav/Library/Developer/Xcode/DerivedData/MindTickle-buzymtagwbmstehjmknrjcjxuysn/Build/Products/Debug-iphonesimulator/SQLCipher/SQLCipher.framework/Headers/sqlite3.h:1724:8: error: redefinition of 'sqlite3_mem_methods'
struct sqlite3_mem_methods {
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3.h:1736:8: note: previous definition is here
struct sqlite3_mem_methods {
^
<module-includes>:2:9: note: in file included from <module-includes>:2:
#import "sqlite3ext.h"
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:
#include <sqlite3.h>
^
/Users/mukeshyadav/Library/Developer/Xcode/DerivedData/MindTickle-buzymtagwbmstehjmknrjcjxuysn/Build/Products/Debug-iphonesimulator/SQLCipher/SQLCipher.framework/Headers/sqlite3.h:6999:8: error: redefinition of 'sqlite3_module'
struct sqlite3_module {
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3.h:6885:8: note: previous definition is here
struct sqlite3_module {
^
<module-includes>:2:9: note: in file included from <module-includes>:2:
#import "sqlite3ext.h"
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:
#include <sqlite3.h>
^
/Users/mukeshyadav/Library/Developer/Xcode/DerivedData/MindTickle-buzymtagwbmstehjmknrjcjxuysn/Build/Products/Debug-iphonesimulator/SQLCipher/SQLCipher.framework/Headers/sqlite3.h:7139:8: error: redefinition of 'sqlite3_index_info'
struct sqlite3_index_info {
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3.h:7025:8: note: previous definition is here
struct sqlite3_index_info {
^
<module-includes>:2:9: note: in file included from <module-includes>:2:
#import "sqlite3ext.h"
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:
#include <sqlite3.h>
^
/Users/mukeshyadav/Library/Developer/Xcode/DerivedData/MindTickle-buzymtagwbmstehjmknrjcjxuysn/Build/Products/Debug-iphonesimulator/SQLCipher/SQLCipher.framework/Headers/sqlite3.h:7142:10: error: redefinition of 'sqlite3_index_constraint'
struct sqlite3_index_constraint {
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3.h:7028:10: note: previous definition is here
struct sqlite3_index_constraint {
^
<module-includes>:2:9: note: in file included from <module-includes>:2:
#import "sqlite3ext.h"
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:
#include <sqlite3.h>
^
/Users/mukeshyadav/Library/Developer/Xcode/DerivedData/MindTickle-buzymtagwbmstehjmknrjcjxuysn/Build/Products/Debug-iphonesimulator/SQLCipher/SQLCipher.framework/Headers/sqlite3.h:7149:10: error: redefinition of 'sqlite3_index_orderby'
struct sqlite3_index_orderby {
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3.h:7035:10: note: previous definition is here
struct sqlite3_index_orderby {
^
<module-includes>:2:9: note: in file included from <module-includes>:2:
#import "sqlite3ext.h"
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:
#include <sqlite3.h>
^
/Users/mukeshyadav/Library/Developer/Xcode/DerivedData/MindTickle-buzymtagwbmstehjmknrjcjxuysn/Build/Products/Debug-iphonesimulator/SQLCipher/SQLCipher.framework/Headers/sqlite3.h:7154:10: error: redefinition of 'sqlite3_index_constraint_usage'
struct sqlite3_index_constraint_usage {
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3.h:7040:10: note: previous definition is here
struct sqlite3_index_constraint_usage {
^
<module-includes>:2:9: note: in file included from <module-includes>:2:
#import "sqlite3ext.h"
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:
#include <sqlite3.h>
^
/Users/mukeshyadav/Library/Developer/Xcode/DerivedData/MindTickle-buzymtagwbmstehjmknrjcjxuysn/Build/Products/Debug-iphonesimulator/SQLCipher/SQLCipher.framework/Headers/sqlite3.h:7285:8: error: redefinition of 'sqlite3_vtab'
struct sqlite3_vtab {
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3.h:7171:8: note: previous definition is here
struct sqlite3_vtab {
^
<module-includes>:2:9: note: in file included from <module-includes>:2:
#import "sqlite3ext.h"
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:
#include <sqlite3.h>
^
/Users/mukeshyadav/Library/Developer/Xcode/DerivedData/MindTickle-buzymtagwbmstehjmknrjcjxuysn/Build/Products/Debug-iphonesimulator/SQLCipher/SQLCipher.framework/Headers/sqlite3.h:7309:8: error: redefinition of 'sqlite3_vtab_cursor'
struct sqlite3_vtab_cursor {
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3.h:7195:8: note: previous definition is here
struct sqlite3_vtab_cursor {
^
<module-includes>:2:9: note: in file included from <module-includes>:2:
#import "sqlite3ext.h"
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:
#include <sqlite3.h>
^
/Users/mukeshyadav/Library/Developer/Xcode/DerivedData/MindTickle-buzymtagwbmstehjmknrjcjxuysn/Build/Products/Debug-iphonesimulator/SQLCipher/SQLCipher.framework/Headers/sqlite3.h:7814:8: error: redefinition of 'sqlite3_mutex_methods'
struct sqlite3_mutex_methods {
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3.h:7699:8: note: previous definition is here
struct sqlite3_mutex_methods {
^
<module-includes>:2:9: note: in file included from <module-includes>:2:
#import "sqlite3ext.h"
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:
#include <sqlite3.h>
^
/Users/mukeshyadav/Library/Developer/Xcode/DerivedData/MindTickle-buzymtagwbmstehjmknrjcjxuysn/Build/Products/Debug-iphonesimulator/SQLCipher/SQLCipher.framework/Headers/sqlite3.h:8570:8: error: redefinition of 'sqlite3_pcache_page'
struct sqlite3_pcache_page {
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3.h:8445:8: note: previous definition is here
struct sqlite3_pcache_page {
^
<module-includes>:2:9: note: in file included from <module-includes>:2:
#import "sqlite3ext.h"
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:
#include <sqlite3.h>
^
/Users/mukeshyadav/Library/Developer/Xcode/DerivedData/MindTickle-buzymtagwbmstehjmknrjcjxuysn/Build/Products/Debug-iphonesimulator/SQLCipher/SQLCipher.framework/Headers/sqlite3.h:8735:8: error: redefinition of 'sqlite3_pcache_methods2'
struct sqlite3_pcache_methods2 {
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3.h:8610:8: note: previous definition is here
struct sqlite3_pcache_methods2 {
^
<module-includes>:2:9: note: in file included from <module-includes>:2:
#import "sqlite3ext.h"
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:
#include <sqlite3.h>
^
/Users/mukeshyadav/Library/Developer/Xcode/DerivedData/MindTickle-buzymtagwbmstehjmknrjcjxuysn/Build/Products/Debug-iphonesimulator/SQLCipher/SQLCipher.framework/Headers/sqlite3.h:8758:8: error: redefinition of 'sqlite3_pcache_methods'
struct sqlite3_pcache_methods {
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3.h:8633:8: note: previous definition is here
struct sqlite3_pcache_methods {
^
<unknown>:0: error: could not build Objective-C module 'SQLite3'
I've just added SQLCipher pod in pod file
pod 'SQLCipher'
Other pods I am using are AWSS3, FirebaseAnalytics, Mixpanel etc.
Related
There is my problem:
I'm using the [share package][1] from pub.dev, and when I am trying to build my app, I got the following error:
/Users/yazan/Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/share-0.6.5+4/ios/Classes/FLTSharePlugin.h:5:9: fatal error: 'Flutter/Flutter.h' file not found
#import <Flutter/Flutter.h>
^~~~~~~~~~~~~~~~~~~
1 error generated.
In file included from /Users/yazan/Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-2.0.5/ios/Classes/FLTSharedPreferencesPlugin.m:5:
/Users/yazan/Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-2.0.5/ios/Classes/FLTSharedPreferencesPlugin.h:5:9: fatal error: 'Flutter/Flutter.h' file not found
#import <Flutter/Flutter.h>
^~~~~~~~~~~~~~~~~~~
1 error generated.
In file included from /Users/yazan/Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-6.0.3/ios/Classes/FLTURLLauncherPlugin.m:7:
/Users/yazan/Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-6.0.3/ios/Classes/FLTURLLauncherPlugin.h:5:9: fatal error: 'Flutter/Flutter.h' file not found
#import <Flutter/Flutter.h>
^~~~~~~~~~~~~~~~~~~ ```
[1]: https://pub.dev/packages/share
I'm looking to add the firebase_messaging 7.0.3 package to add Push Notifications to my project. I've configured it for Android and it's working like a charm. Getting the Registration Token and can push notifications to my emulator and phone no problem.
Now, when I run the iOS build it fails on finding protocol declaration for 'FIRMessagingDelegate'. From what I understand the FIR- prefix has been removed some time ago and should now just be called MessagingDelegate.
I've ran both pod install and update and tried cleaning flutter.
flutter clean
pod install
pod update
Also, tried to add Firebase-Messaging to my Podfile version less and trying older versions to no avail.
I followed all the steps in the iOS configuration at: https://pub.dev/packages/firebase_messaging and tried it with method swizzling and without. I've ran out of options to try, perhaps some dependencies are not using the right version of firebase someplace but I'm not really sure how to check for those.
Here's the Stack Trace from the build:
Launching lib/main.dart on iPhone 12 Pro Max in debug mode...
Running pod install...
Running Xcode build...
Xcode build done. 56.0s
Failed to build iOS app
Error output from Xcode build:
↳
2021-02-08 16:55:26.766 xcodebuild[37625:1544731] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks-17705/DTDeviceKitBase/DTDKRemoteDeviceData.m:371
Details: (null) deviceType from 00008030-000E78DC3C81802E was NULL when -platform called.
Object: <DTDKMobileDeviceToken: 0x7fdc6daa9710>
Method: -platform
Thread: <NSThread: 0x7fdc6d00f3d0>{number = 2, name = (null)}
Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide.
** BUILD FAILED **
Xcode's output:
↳
/Users/peterpoliwoda/Development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.3/ios/Classes/FLTFirebaseMessagingPlugin.m:14:43: error: cannot find protocol declaration for 'FIRMessagingDelegate'
#interface FLTFirebaseMessagingPlugin () <FIRMessagingDelegate>
^
/Users/peterpoliwoda/Development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.3/ios/Classes/FLTFirebaseMessagingPlugin.m:190:43: error: expected a type
- (void)applicationReceivedRemoteMessage:(FIRMessagingRemoteMessage *)remoteMessage {
^
/Users/peterpoliwoda/Development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.3/ios/Classes/FLTFirebaseMessagingPlugin.m:284:28: error: expected a type
- (void)messaging:(nonnull FIRMessaging *)messaging
^
/Users/peterpoliwoda/Development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.3/ios/Classes/FLTFirebaseMessagingPlugin.m:289:20: error: expected a type
- (void)messaging:(FIRMessaging *)messaging
^
/Users/peterpoliwoda/Development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.3/ios/Classes/FLTFirebaseMessagingPlugin.m:290:24: error: expected a type
didReceiveMessage:(FIRMessagingRemoteMessage *)remoteMessage {
^
/Users/peterpoliwoda/Development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.3/ios/Classes/FLTFirebaseMessagingPlugin.m:55:6: error: use of undeclared identifier 'FIRMessaging'
[FIRMessaging messaging].delegate = self;
^
/Users/peterpoliwoda/Development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.3/ios/Classes/FLTFirebaseMessagingPlugin.m:136:6: error: use of undeclared identifier 'FIRMessaging'
[FIRMessaging messaging].shouldEstablishDirectChannel = true;
^
/Users/peterpoliwoda/Development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.3/ios/Classes/FLTFirebaseMessagingPlugin.m:144:7: error: use of undeclared identifier 'FIRMessaging'
[[FIRMessaging messaging] subscribeToTopic:topic
^
/Users/peterpoliwoda/Development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.3/ios/Classes/FLTFirebaseMessagingPlugin.m:150:7: error: use of undeclared identifier 'FIRMessaging'
[[FIRMessaging messaging] unsubscribeFromTopic:topic
^
/Users/peterpoliwoda/Development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.3/ios/Classes/FLTFirebaseMessagingPlugin.m:155:21: warning: 'FIRInstanceID' is deprecated: FIRInstanceID is deprecated, please use FIRInstallations for installation identifier handling and use FIRMessaging for FCM registration token handling. [-Wdeprecated-declarations]
[[FIRInstanceID instanceID]
^
In module 'FirebaseInstanceID' imported from /Users/peterpoliwoda/Development/git/bd4qol_mobile_app/ios/Pods/Headers/Public/Firebase/Firebase.h:72:
/Users/peterpoliwoda/Development/git/bd4qol_mobile_app/ios/Pods/FirebaseInstanceID/Firebase/InstanceID/Public/FIRInstanceID.h:190:1: note: 'FIRInstanceID' has been explicitly marked deprecated here
__deprecated_msg("FIRInstanceID is deprecated, please use FIRInstallations for installation "
^
In module 'UIKit' imported from /Users/peterpoliwoda/Development/git/bd4qol_mobile_app/ios/Pods/Target Support Files/firebase_messaging/firebase_messaging-prefix.pch:2:
In module 'Foundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
In module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/sys/cdefs.h:200:48: note: expanded from macro '__deprecated_msg'
#define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
^
/Users/peterpoliwoda/Development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.3/ios/Classes/FLTFirebaseMessagingPlugin.m:156:33: warning: 'FIRInstanceIDResult' is deprecated: FIRInstanceIDResult is deprecated, please use FIRInstallations for app instance identifier handling and use FIRMessaging for FCM registration token handling. [-Wdeprecated-declarations]
instanceIDWithHandler:^(FIRInstanceIDResult *_Nullable instanceIDResult,
^
In module 'FirebaseInstanceID' imported from /Users/peterpoliwoda/Development/git/bd4qol_mobile_app/ios/Pods/Headers/Public/Firebase/Firebase.h:72:
/Users/peterpoliwoda/Development/git/bd4qol_mobile_app/ios/Pods/FirebaseInstanceID/Firebase/InstanceID/Public/FIRInstanceID.h:153:1: note: 'FIRInstanceIDResult' has been explicitly marked deprecated here
__deprecated_msg("FIRInstanceIDResult is deprecated, please use FIRInstallations "
^
In module 'UIKit' imported from /Users/peterpoliwoda/Development/git/bd4qol_mobile_app/ios/Pods/Target Support Files/firebase_messaging/firebase_messaging-prefix.pch:2:
In module 'Foundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
In module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/sys/cdefs.h:200:48: note: expanded from macro '__deprecated_msg'
#define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
^
/Users/peterpoliwoda/Development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.3/ios/Classes/FLTFirebaseMessagingPlugin.m:156:9: warning: 'instanceIDWithHandler:' is deprecated: Use `Installations.installationID(completion:)` to get the app instance identifier instead. Use `Messaging.token(completion:)` to get FCM registration token instead. [-Wdeprecated-declarations]
instanceIDWithHandler:^(FIRInstanceIDResult *_Nullable instanceIDResult,
^
In module 'FirebaseInstanceID' imported from /Users/peterpoliwoda/Development/git/bd4qol_mobile_app/ios/Pods/Headers/Public/Firebase/Firebase.h:72:
/Users/peterpoliwoda/Development/git/bd4qol_mobile_app/ios/Pods/FirebaseInstanceID/Firebase/InstanceID/Public/FIRInstanceID.h:215:5: note: 'instanceIDWithHandler:' has been explicitly marked deprecated here
__deprecated_msg("Use `Installations.installationID(completion:)` to get the app instance "
^
In module 'UIKit' imported from /Users/peterpoliwoda/Development/git/bd4qol_mobile_app/ios/Pods/Target Support Files/firebase_messaging/firebase_messaging-prefix.pch:2:
In module 'Foundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
In module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/sys/cdefs.h:200:48: note: expanded from macro '__deprecated_msg'
#define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
^
/Users/peterpoliwoda/Development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.3/ios/Classes/FLTFirebaseMessagingPlugin.m:166:21: warning: 'FIRInstanceID' is deprecated: FIRInstanceID is deprecated, please use FIRInstallations for installation identifier handling and use FIRMessaging for FCM registration token handling. [-Wdeprecated-declarations]
[[FIRInstanceID instanceID] deleteIDWithHandler:^void(NSError *_Nullable error) {
^
In module 'FirebaseInstanceID' imported from /Users/peterpoliwoda/Development/git/bd4qol_mobile_app/ios/Pods/Headers/Public/Firebase/Firebase.h:72:
/Users/peterpoliwoda/Development/git/bd4qol_mobile_app/ios/Pods/FirebaseInstanceID/Firebase/InstanceID/Public/FIRInstanceID.h:190:1: note: 'FIRInstanceID' has been explicitly marked deprecated here
__deprecated_msg("FIRInstanceID is deprecated, please use FIRInstallations for installation "
^
In module 'UIKit' imported from /Users/peterpoliwoda/Development/git/bd4qol_mobile_app/ios/Pods/Target Support Files/firebase_messaging/firebase_messaging-prefix.pch:2:
In module 'Foundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
In module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/sys/cdefs.h:200:48: note: expanded from macro '__deprecated_msg'
#define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
^
/Users/peterpoliwoda/Development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.3/ios/Classes/FLTFirebaseMessagingPlugin.m:166:33: warning: 'deleteIDWithHandler:' is deprecated: Use `Installations.delete(completion:)` instead. Also check `Messaging.deleteData(completion:)`if you want to delete FCM registration token. [-Wdeprecated-declarations]
[[FIRInstanceID instanceID] deleteIDWithHandler:^void(NSError *_Nullable error) {
^
In module 'FirebaseInstanceID' imported from /Users/peterpoliwoda/Development/git/bd4qol_mobile_app/ios/Pods/Headers/Public/Firebase/Firebase.h:72:
/Users/peterpoliwoda/Development/git/bd4qol_mobile_app/ios/Pods/FirebaseInstanceID/Firebase/InstanceID/Public/FIRInstanceID.h:321:33: note: 'deleteIDWithHandler:' has been explicitly marked deprecated here
__deprecated_msg("Use `Installations.delete(completion:)` instead. "
^
In module 'UIKit' imported from /Users/peterpoliwoda/Development/git/bd4qol_mobile_app/ios/Pods/Target Support Files/firebase_messaging/firebase_messaging-prefix.pch:2:
In module 'Foundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
In module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/sys/cdefs.h:200:48: note: expanded from macro '__deprecated_msg'
#define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
^
/Users/peterpoliwoda/Development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.3/ios/Classes/FLTFirebaseMessagingPlugin.m:176:20: error: use of undeclared identifier 'FIRMessaging'
BOOL value = [[FIRMessaging messaging] isAutoInitEnabled];
^
/Users/peterpoliwoda/Development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.3/ios/Classes/FLTFirebaseMessagingPlugin.m:180:6: error: use of undeclared identifier 'FIRMessaging'
[FIRMessaging messaging].autoInitEnabled = value.boolValue;
^
/Users/peterpoliwoda/Development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.3/ios/Classes/FLTFirebaseMessagingPlugin.m:191:52: error: property 'appData' not found on object of type '__strong id'
[self didReceiveRemoteNotification:remoteMessage.appData];
^
/Users/peterpoliwoda/Development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.3/ios/Classes/FLTFirebaseMessagingPlugin.m:204:7: error: use of undeclared identifier 'FIRMessaging'
[[FIRMessaging messaging] appDidReceiveMessage:userInfo];
^
/Users/peterpoliwoda/Development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.3/ios/Classes/FLTFirebaseMessagingPlugin.m:263:5: error: use of undeclared identifier 'FIRMessaging'
[[FIRMessaging messaging] setAPNSToken:deviceToken type:FIRMessagingAPNSTokenTypeSandbox];
^
/Users/peterpoliwoda/Development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.3/ios/Classes/FLTFirebaseMessagingPlugin.m:268:48: error: use of undeclared identifier 'FIRMessaging'
[_channel invokeMethod:#"onToken" arguments:[FIRMessaging messaging].FCMToken];
^
/Users/peterpoliwoda/Development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.3/ios/Classes/FLTFirebaseMessagingPlugin.m:291:63: error: property 'appData' not found on object of type '__strong id'
[_channel invokeMethod:#"onMessage" arguments:remoteMessage.appData];
^
5 warnings and 16 errors generated.
$ flutter --version
Flutter 1.22.6 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 9b2d32b605 (3 weeks ago) • 2021-01-22 14:36:39 -0800
Engine • revision 2f0af37152
Tools • Dart 2.10.5
I am facing weird errors when trying to build my project for the simulator with xcodebuild (It works fine when building directly with Xcode).
09:54:55 - tito#lt0311 Game> xcrun xcodebuild -verbose -scheme Game -configuration Debug -sdk iphoneos9.2 -derivedDataPath builds clean build | xcpretty
▸ Cleaning Game/Game [Debug]
▸ Check Dependencies
▸ Clean Succeeded
▸ Building Game/Game [Debug]
▸ Check Dependencies
▸ Compiling AppDelegate.m
▸ Compiling main.m
▸ Compiling ViewController.m
▸ Compiling ViewController.m
▸ Compiling AppDelegate.m
▸ Compiling main.m
▸ Compiling Main.storyboard
▸ Compiling LaunchScreen.storyboard
▸ Processing Info.plist
▸ Touching Game.app
▸ Signing builds/Build/Products/Debug-iphoneos/Game.app
▸ Build Succeeded
09:55:06 - tito#lt0311 Game> xcrun xcodebuild -verbose -scheme Game -configuration Debug -sdk iphonesimulator9.2 -derivedDataPath builds clean build | xcpretty
▸ Cleaning Game/Game [Debug]
▸ Check Dependencies
▸ Clean Succeeded
▸ Building Game/Game [Debug]
▸ Check Dependencies
▸ Compiling ViewController.m
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/cdefs.h:707:2: Unsupported architecture
#error Unsupported architecture
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/machine/_types.h:34:2: architecture not supported
#error architecture not supported
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types.h:55:9: unknown type name '__int64_t'
typedef __int64_t __darwin_blkcnt_t; /* total blocks */
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types.h:56:9: unknown type name '__int32_t'
typedef __int32_t __darwin_blksize_t; /* preferred block size */
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types.h:57:9: unknown type name '__int32_t'
typedef __int32_t __darwin_dev_t; /* dev_t */
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types.h:60:9: unknown type name '__uint32_t'
typedef __uint32_t __darwin_gid_t; /* [???] process and group IDs */
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types.h:61:9: unknown type name '__uint32_t'
typedef __uint32_t __darwin_id_t; /* [XSI] pid_t, uid_t, or gid_t*/
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types.h:62:9: unknown type name '__uint64_t'; did you mean 'uint64_t'?
typedef __uint64_t __darwin_ino64_t; /* [???] Used for 64 bit inodes */
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types.h:68:9: unknown type name '__darwin_natural_t'
typedef __darwin_natural_t __darwin_mach_port_name_t; /* Used by mach */
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types.h:70:9: unknown type name '__uint16_t'
typedef __uint16_t __darwin_mode_t; /* [???] Some file attributes */
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types.h:71:9: unknown type name '__int64_t'
typedef __int64_t __darwin_off_t; /* [???] Used for file sizes */
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types.h:72:9: unknown type name '__int32_t'
typedef __int32_t __darwin_pid_t; /* [???] process and group IDs */
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types.h:73:9: unknown type name '__uint32_t'
typedef __uint32_t __darwin_sigset_t; /* [???] signal set */
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types.h:74:9: unknown type name '__int32_t'
typedef __int32_t __darwin_suseconds_t; /* [???] microseconds */
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types.h:75:9: unknown type name '__uint32_t'
typedef __uint32_t __darwin_uid_t; /* [???] user IDs */
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types.h:76:9: unknown type name '__uint32_t'
typedef __uint32_t __darwin_useconds_t; /* [???] microseconds */
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types/_intptr_t.h:30:9: unknown type name '__darwin_intptr_t'
typedef __darwin_intptr_t intptr_t;
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/_types.h:42:9: unknown type name '__uint32_t'
typedef __uint32_t __darwin_wctype_t;
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types/_size_t.h:30:9: unknown type name '__darwin_size_t'; did you mean '__darwin_ino_t'?
typedef __darwin_size_t size_t;
^
❌ fatal error: too many errors emitted, stopping now [-ferror-limit=]
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKitDefines.h:8:9: could not build module 'Darwin'
#import <Availability.h>
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:10: could not build module 'Darwin'
#include <sys/types.h>
~~~~~~~^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10: could not build module 'CoreFoundation'
#include <CoreFoundation/CoreFoundation.h>
~~~~~~~~^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/objc/objc.h:31:10: could not build module 'Darwin'
#include <sys/types.h> // for __DARWIN_NULL
~~~~~~~~^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/mach-o/arch.h:32:10: could not build module 'Darwin'
#include <stdint.h>
~~~~~~~~^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/dispatch/dispatch.h:25:10: could not build module 'Darwin'
#include <Availability.h>
~~~~~~~~^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/os/base.h:24:10: could not build module 'Darwin'
#include <sys/cdefs.h>
~~~~~~~~^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/Security.framework/Headers/SecBase.h:32:10: could not build module 'Darwin'
#include <Availability.h>
~~~~~~~~^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBase.h:8:10: could not build module 'Darwin'
#include <stdbool.h>
~~~~~~~~^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImageDefines.h:10:10: could not build module 'Darwin'
#include <TargetConditionals.h>
~~~~~~~~^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CoreVideo.h:16:10: could not build module 'Darwin'
#include <TargetConditionals.h>
~~~~~~~~^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTDefines.h:12:10: could not build module 'Darwin'
#include <Availability.h>
~~~~~~~~^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CABase.h:11:10: could not build module 'Darwin'
#include <stdbool.h>
~~~~~~~~^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/EAGL.h:8:10: could not build module 'Foundation'
#include <Foundation/Foundation.h>
~~~~~~~~^
❌ /Users/tito/Documents/workspace/Game/Game/ViewController.h:9:9: could not build module 'UIKit'
#import <UIKit/UIKit.h>
~~~~~~~~^
▸ Compiling AppDelegate.m
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/cdefs.h:707:2: Unsupported architecture
#error Unsupported architecture
~~~~~~~^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/machine/_types.h:34:2: architecture not supported
#error architecture not supported
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types.h:55:9: unknown type name '__int64_t'
typedef __int64_t __darwin_blkcnt_t; /* total blocks */
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types.h:56:9: unknown type name '__int32_t'
typedef __int32_t __darwin_blksize_t; /* preferred block size */
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types.h:57:9: unknown type name '__int32_t'
typedef __int32_t __darwin_dev_t; /* dev_t */
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types.h:60:9: unknown type name '__uint32_t'; did you mean 'uint32_t'?
typedef __uint32_t __darwin_gid_t; /* [???] process and group IDs */
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types.h:61:9: unknown type name '__uint32_t'; did you mean 'uint32_t'?
typedef __uint32_t __darwin_id_t; /* [XSI] pid_t, uid_t, or gid_t*/
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types.h:62:9: unknown type name '__uint64_t'; did you mean 'uint64_t'?
typedef __uint64_t __darwin_ino64_t; /* [???] Used for 64 bit inodes */
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types.h:68:9: unknown type name '__darwin_natural_t'
typedef __darwin_natural_t __darwin_mach_port_name_t; /* Used by mach */
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types.h:70:9: unknown type name '__uint16_t'; did you mean 'uint16_t'?
typedef __uint16_t __darwin_mode_t; /* [???] Some file attributes */
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types.h:71:9: unknown type name '__int64_t'
typedef __int64_t __darwin_off_t; /* [???] Used for file sizes */
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types.h:72:9: unknown type name '__int32_t'
typedef __int32_t __darwin_pid_t; /* [???] process and group IDs */
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types.h:73:9: unknown type name '__uint32_t'; did you mean 'uint32_t'?
typedef __uint32_t __darwin_sigset_t; /* [???] signal set */
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types.h:74:9: unknown type name '__int32_t'
typedef __int32_t __darwin_suseconds_t; /* [???] microseconds */
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types.h:75:9: unknown type name '__uint32_t'; did you mean 'uint32_t'?
typedef __uint32_t __darwin_uid_t; /* [???] user IDs */
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types.h:76:9: unknown type name '__uint32_t'; did you mean 'uint32_t'?
typedef __uint32_t __darwin_useconds_t; /* [???] microseconds */
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types/_intptr_t.h:30:9: unknown type name '__darwin_intptr_t'
typedef __darwin_intptr_t intptr_t;
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types/_size_t.h:30:9: unknown type name '__darwin_size_t'
typedef __darwin_size_t size_t;
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types/_ct_rune_t.h:31:9: unknown type name '__darwin_ct_rune_t'; did you mean '__darwin_wctrans_t'?
typedef __darwin_ct_rune_t ct_rune_t;
^
❌ fatal error: too many errors emitted, stopping now [-ferror-limit=]
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKitDefines.h:8:9: could not build module 'Darwin'
#import <Availability.h>
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:10: could not build module 'Darwin'
#include <sys/types.h>
~~~~~~~^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10: could not build module 'CoreFoundation'
#include <CoreFoundation/CoreFoundation.h>
~~~~~~~~^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/objc/objc.h:31:10: could not build module 'Darwin'
#include <sys/types.h> // for __DARWIN_NULL
~~~~~~~~^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/mach-o/arch.h:32:10: could not build module 'Darwin'
#include <stdint.h>
~~~~~~~~^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/dispatch/dispatch.h:25:10: could not build module 'Darwin'
#include <Availability.h>
~~~~~~~~^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/os/base.h:24:10: could not build module 'Darwin'
#include <sys/cdefs.h>
~~~~~~~~^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/Security.framework/Headers/SecBase.h:32:10: could not build module 'Darwin'
#include <Availability.h>
~~~~~~~~^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBase.h:8:10: could not build module 'Darwin'
#include <stdbool.h>
~~~~~~~~^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImageDefines.h:10:10: could not build module 'Darwin'
#include <TargetConditionals.h>
~~~~~~~~^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CoreVideo.h:16:10: could not build module 'Darwin'
#include <TargetConditionals.h>
~~~~~~~~^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTDefines.h:12:10: could not build module 'Darwin'
#include <Availability.h>
~~~~~~~~^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CABase.h:11:10: could not build module 'Darwin'
#include <stdbool.h>
~~~~~~~~^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/EAGL.h:8:10: could not build module 'Foundation'
#include <Foundation/Foundation.h>
~~~~~~~~^
❌ /Users/tito/Documents/workspace/Game/Game/AppDelegate.h:9:9: could not build module 'UIKit'
#import <UIKit/UIKit.h>
~~~~~~~~^
▸ Compiling main.m
▸ Compiling AppDelegate.m
** BUILD FAILED **
The following build commands failed:
CompileC builds/Build/Intermediates/Game.build/Debug-iphoneos/Game.build/Objects-normal/arm64/ViewController.o Game/ViewController.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
CompileC builds/Build/Intermediates/Game.build/Debug-iphoneos/Game.build/Objects-normal/armv7/AppDelegate.o Game/AppDelegate.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(2 failures)
This commands have been executed on a project that I had just created with Xcode7.2.
Does anyone know how to solve these errors?
On the apple forums user inside found another workaround:
Pass PLATFORM_NAME=iphonesimulator to xcodebuild, in addition to
-sdk iphonesimulator.
By this way you're not related to simulator name or id.
https://forums.developer.apple.com/thread/27975
The workaround is to specify the destination parameter when building -
xcodebuild ONLY_ACTIVE_ARCH=NO -configuration ${CONFIGURATION} -workspace "${PROJECT_NAME}.xcworkspace" -scheme "${TARGET_NAME}" -sdk iphonesimulator BUILD_DIR="${BUILD_DIR}" BUILD_ROOT="${BUILD_ROOT}" **-destination 'platform=iOS Simulator,id=DC050A0D-6041-40F5-9D0E-EAEFA1D1EA42,OS=9.2'** clean build
(Replace the "id" with name such as name=iPhone 6 if you have only one simulator of that specific type)
..I am trying to generate the report using oclint-json-compilation
oclint-json-compilation-database -v oclint_args "-report-type html -o report.html -rc=LONG_LINE=120" open compile_commands.json open report.html
and I am getting the following error
`While building module 'UIKit' imported from /Users/prjwl/Documents/Samples/automation/automation/automation-Prefix.pch:14:
While building module 'QuartzCore' imported from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewLayout.h:11:
In file included from <module-includes>:1:
In file included from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAAnimation.h:6:
/Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h:153:25: note: property declared here
#property CATransform3D transform;
^
While building module 'UIKit' imported from /Users/prjwl/Documents/Samples/automation/automation/automation-Prefix.pch:14:
While building module 'QuartzCore' imported from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewLayout.h:11:
In file included from <module-includes>:4:
In file included from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAEAGLLayer.h:6:
/Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h:166:18: error: property has a previous declaration
#property CGRect frame;
^
While building module 'UIKit' imported from /Users/prjwl/Documents/Samples/automation/automation/automation-Prefix.pch:14:
While building module 'QuartzCore' imported from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewLayout.h:11:
In file included from <module-includes>:1:
In file included from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAAnimation.h:6:
/Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h:166:18: note: property declared here
#property CGRect frame;
^
While building module 'UIKit' imported from /Users/prjwl/Documents/Samples/automation/automation/automation-Prefix.pch:14:
While building module 'QuartzCore' imported from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewLayout.h:11:
In file included from <module-includes>:4:
In file included from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAEAGLLayer.h:6:
/Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h:171:33: error: property has a previous declaration
#property(getter=isHidden) BOOL hidden;
^
While building module 'UIKit' imported from /Users/prjwl/Documents/Samples/automation/automation/automation-Prefix.pch:14:
While building module 'QuartzCore' imported from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewLayout.h:11:
In file included from <module-includes>:1:
In file included from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAAnimation.h:6:
/Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h:171:33: note: property declared here
#property(getter=isHidden) BOOL hidden;
^
While building module 'UIKit' imported from /Users/prjwl/Documents/Samples/automation/automation/automation-Prefix.pch:14:
While building module 'QuartzCore' imported from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewLayout.h:11:
In file included from <module-includes>:4:
In file included from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAEAGLLayer.h:6:
/Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h:176:38: error: property has a previous declaration
#property(getter=isDoubleSided) BOOL doubleSided;
^
While building module 'UIKit' imported from /Users/prjwl/Documents/Samples/automation/automation/automation-Prefix.pch:14:
While building module 'QuartzCore' imported from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewLayout.h:11:
In file included from <module-includes>:1:
In file included from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAAnimation.h:6:
/Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h:176:38: note: property declared here
#property(getter=isDoubleSided) BOOL doubleSided;
^
While building module 'UIKit' imported from /Users/prjwl/Documents/Samples/automation/automation/automation-Prefix.pch:14:
While building module 'QuartzCore' imported from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewLayout.h:11:
In file included from <module-includes>:4:
In file included from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAEAGLLayer.h:6:
/Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h:184:42: error: property has a previous declaration
#property(getter=isGeometryFlipped) BOOL geometryFlipped;
^
While building module 'UIKit' imported from /Users/prjwl/Documents/Samples/automation/automation/automation-Prefix.pch:14:
While building module 'QuartzCore' imported from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewLayout.h:11:
In file included from <module-includes>:1:
In file included from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAAnimation.h:6:
/Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h:184:42: note: property declared here
#property(getter=isGeometryFlipped) BOOL geometryFlipped;
^
While building module 'UIKit' imported from /Users/prjwl/Documents/Samples/automation/automation/automation-Prefix.pch:14:
While building module 'QuartzCore' imported from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewLayout.h:11:
In file included from <module-includes>:4:
In file included from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAEAGLLayer.h:6:
/Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h:201:30: error: property has a previous declaration
#property(readonly) CALayer *superlayer;
^
While building module 'UIKit' imported from /Users/prjwl/Documents/Samples/automation/automation/automation-Prefix.pch:14:
While building module 'QuartzCore' imported from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewLayout.h:11:
In file included from <module-includes>:1:
In file included from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAAnimation.h:6:
/Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h:201:30: note: property declared here
#property(readonly) CALayer *superlayer;
^
While building module 'UIKit' imported from /Users/prjwl/Documents/Samples/automation/automation/automation-Prefix.pch:14:
While building module 'QuartzCore' imported from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewLayout.h:11:
In file included from <module-includes>:4:
In file included from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAEAGLLayer.h:6:
/Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h:214:26: error: property has a previous declaration
#property(copy) NSArray *sublayers;
^
While building module 'UIKit' imported from /Users/prjwl/Documents/Samples/automation/automation/automation-Prefix.pch:14:
While building module 'QuartzCore' imported from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewLayout.h:11:
In file included from <module-includes>:1:
In file included from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAAnimation.h:6:
/Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h:214:26: note: property declared here
#property(copy) NSArray *sublayers;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
While building module 'UIKit' imported from /Users/prjwl/Documents/Samples/automation/automation/automation-Prefix.pch:14:
In file included from <module-includes>:1:
In file included from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:24:
In file included from /Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewFlowLayout.h:8:
/Users/prjwl/Documents/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewLayout.h:11:9: fatal error: could not build module 'QuartzCore'
#import <QuartzCore/CATransform3D.h>
~~~~~~~^
21 errors generated.
In file included from <built-in>:168:
In file included from <command line>:2:
/Users/prjwl/Documents/Samples/automation/automation/automation-Prefix.pch:14:13: fatal error: could not build module 'UIKit'
#import <UIKit/UIKit.h>
~~~~~~~^
and so on can any one help me how can I exclude system libraries from oclint?
I too got the same problem but was able to resolve it updating to OCLint 0.8 from here.
I have my prefix pch file but I don't know why its giving me this error. Please help.
clang: error: no such file or directory: '/Users/djtakeuchi/Documents/Xcode Projects/Xcode Supplied Source Code/BirthdayReminder/BirthdayReminder/user-interface/view-controllers/../../BRBirthdayEditViewController.m'
clang: error: no input files
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
prefix.pch file:
//
// Prefix header for all source files of the 'BirthdayReminder' target in the 'BirthdayReminder' project
//
#import <Availability.h>
#ifndef __IPHONE_5_0
#warning "This project uses features only available in iOS SDK 5.0 and later."
#endif
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#endif