Giter Club home page Giter Club logo

Comments (7)

werediver avatar werediver commented on May 23, 2024

The "-Swift.h" files are autogenerated. Looks like an Xcode (or some other) glitch. I'd suggest to clean up your working copy and Xcode related caches, etc., and also to check this: Flutter: Xcode 11.4 Support.

To clean up your working copy consider using flutter clean and/or git clean (perhaps, git clean -dfx, but read the manual first to avoid data loss).

To clean (some of) the Xcode related caches consider using the following commands:

xcrun -k
rm -rf ~/Library/Caches/com.apple.dt.Xcode
rm -rf ~/Library/Developer/Xcode/DerivedData
rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang/ModuleCache"
rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang.$(whoami)/ModuleCache"

Also, try building using both flutter build ios --debug (or from your IDE) and from Xcode, it might give different results/insights.

from flutter_reactive_ble.

remonh87 avatar remonh87 commented on May 23, 2024

From the flutter doctor output I noticed you are using a very bleeding edge flutter version. We just released v2.1.0 of the app that adds support for the new plugin structure. I tested our library with the latest beta version today and everything compiles at my machine.

If v2.1.0 does not solve your issue I would suggest to try the steps @werediver mentioned

from flutter_reactive_ble.

marcel-bluestone avatar marcel-bluestone commented on May 23, 2024

OK, so I followed werediver's steps to clear the caches, upgraded the package to 2.1.0 and tried to build using flutter build ios --debug... Did not help unfortunately:

flutter build ios --debug
 
Building com.bluestone-tec.sensorMapping for device (ios)...
Automatically signing iOS for device deployment using specified development team in Xcode project: VCY32VM6H4
Running Xcode build...                                                  
                                                   
Xcode build done.                                           18,9s
Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **


Xcode's output:
↳
    111 warnings generated.
    /Users/marcel/.pub-cache/hosted/pub.dartlang.org/flutter_blue-0.7.1+1/ios/Classes/FlutterBluePlugin.m:546:49: warning:
    'CBManagerState' is only available on iOS 10.0 or newer [-Wunguarded-availability]
    - (ProtosBluetoothState*)toBluetoothStateProto:(CBManagerState)state {
                                                    ^
    In module 'CoreBluetooth' imported from
    /Users/marcel/.pub-cache/hosted/pub.dartlang.org/flutter_blue-0.7.1+1/ios/Classes/FlutterBluePlugin.h:6:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.4.sdk/System/Library/F
    rameworks/CoreBluetooth.framework/Headers/CBManager.h:32:28: note: 'CBManagerState' has been marked as being introduced
    in iOS 10.0 here, but the deployment target is iOS 8.0.0
    typedef NS_ENUM(NSInteger, CBManagerState) {
                               ^
    /Users/marcel/.pub-cache/hosted/pub.dartlang.org/flutter_blue-0.7.1+1/ios/Classes/FlutterBluePlugin.m:546:1: note:
    annotate 'toBluetoothStateProto:' with an availability attribute to silence this warning
    - (ProtosBluetoothState*)toBluetoothStateProto:(CBManagerState)state {
    ^
                                                                          API_AVAILABLE(ios(10.0))
    /Users/marcel/.pub-cache/hosted/pub.dartlang.org/flutter_blue-0.7.1+1/ios/Classes/FlutterBluePlugin.m:74:37: warning:
    'CBManagerStateUnsupported' is only available on iOS 10.0 or newer [-Wunguarded-availability]
        if(self.centralManager.state != CBManagerStateUnsupported && self.centralManager.state != CBManagerStateUnknown) {
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~
    In module 'CoreBluetooth' imported from
    /Users/marcel/.pub-cache/hosted/pub.dartlang.org/flutter_blue-0.7.1+1/ios/Classes/FlutterBluePlugin.h:6:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.4.sdk/System/Library/F
    rameworks/CoreBluetooth.framework/Headers/CBManager.h:32:28: note: 'CBManagerState' has been marked as being introduced
    in iOS 10.0 here, but the deployment target is iOS 8.0.0
    typedef NS_ENUM(NSInteger, CBManagerState) {
                               ^
    /Users/marcel/.pub-cache/hosted/pub.dartlang.org/flutter_blue-0.7.1+1/ios/Classes/FlutterBluePlugin.m:74:37: note:
    enclose 'CBManagerStateUnsupported' in an @available check to silence this warning
        if(self.centralManager.state != CBManagerStateUnsupported && self.centralManager.state != CBManagerStateUnknown) {
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~
    /Users/marcel/.pub-cache/hosted/pub.dartlang.org/flutter_blue-0.7.1+1/ios/Classes/FlutterBluePlugin.m:74:95: warning:
    'CBManagerStateUnknown' is only available on iOS 10.0 or newer [-Wunguarded-availability]
        if(self.centralManager.state != CBManagerStateUnsupported && self.centralManager.state != CBManagerStateUnknown) {
                                                                                                  ^~~~~~~~~~~~~~~~~~~~~
    In module 'CoreBluetooth' imported from
    /Users/marcel/.pub-cache/hosted/pub.dartlang.org/flutter_blue-0.7.1+1/ios/Classes/FlutterBluePlugin.h:6:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.4.sdk/System/Library/F
    rameworks/CoreBluetooth.framework/Headers/CBManager.h:32:28: note: 'CBManagerState' has been marked as being introduced
    in iOS 10.0 here, but the deployment target is iOS 8.0.0
    typedef NS_ENUM(NSInteger, CBManagerState) {
                               ^
    /Users/marcel/.pub-cache/hosted/pub.dartlang.org/flutter_blue-0.7.1+1/ios/Classes/FlutterBluePlugin.m:74:95: note:
    enclose 'CBManagerStateUnknown' in an @available check to silence this warning
        if(self.centralManager.state != CBManagerStateUnsupported && self.centralManager.state != CBManagerStateUnknown) {
                                                                                                  ^~~~~~~~~~~~~~~~~~~~~
    /Users/marcel/.pub-cache/hosted/pub.dartlang.org/flutter_blue-0.7.1+1/ios/Classes/FlutterBluePlugin.m:80:37: warning:
    'CBManagerStatePoweredOn' is only available on iOS 10.0 or newer [-Wunguarded-availability]
        if(self.centralManager.state == CBManagerStatePoweredOn) {
                                        ^~~~~~~~~~~~~~~~~~~~~~~
    In module 'CoreBluetooth' imported from
    /Users/marcel/.pub-cache/hosted/pub.dartlang.org/flutter_blue-0.7.1+1/ios/Classes/FlutterBluePlugin.h:6:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.4.sdk/System/Library/F
    rameworks/CoreBluetooth.framework/Headers/CBManager.h:32:28: note: 'CBManagerState' has been marked as being introduced
    in iOS 10.0 here, but the deployment target is iOS 8.0.0
    typedef NS_ENUM(NSInteger, CBManagerState) {
                               ^
    /Users/marcel/.pub-cache/hosted/pub.dartlang.org/flutter_blue-0.7.1+1/ios/Classes/FlutterBluePlugin.m:80:37: note:
    enclose 'CBManagerStatePoweredOn' in an @available check to silence this warning
        if(self.centralManager.state == CBManagerStatePoweredOn) {
                                        ^~~~~~~~~~~~~~~~~~~~~~~
    4 warnings generated.
    /Users/marcel/.pub-cache/hosted/pub.dartlang.org/sqflite_sqlcipher-1.0.0+6/ios/Classes/SqfliteSqlCipherPlugin.m:654:15:
    warning: treating Unicode character as whitespace [-Wunicode-whitespace]
            } else {
                  ^
    1 warning generated.
    /Users/marcel/.pub-cache/hosted/pub.dartlang.org/flutter_reactive_ble-2.1.0/ios/Classes/BleData
    extras/BLEStatus.swift:4:5: warning: switch covers known cases, but 'CBManagerState' may have additional unknown
    values, possibly added in future versions
        switch (centralState) {
        ^
    /Users/marcel/.pub-cache/hosted/pub.dartlang.org/flutter_reactive_ble-2.1.0/ios/Classes/BleData
    extras/BLEStatus.swift:4:5: note: handle unknown values using "@unknown default"
        switch (centralState) {
        ^
    /Users/marcel/.pub-cache/hosted/pub.dartlang.org/flutter_reactive_ble-2.1.0/ios/Classes/BleData
    extras/ConnectionState.swift:4:5: warning: switch covers known cases, but 'CBPeripheralState' may have additional
    unknown values, possibly added in future versions
        switch connectionState {
        ^
    /Users/marcel/.pub-cache/hosted/pub.dartlang.org/flutter_reactive_ble-2.1.0/ios/Classes/BleData
    extras/ConnectionState.swift:4:5: note: handle unknown values using "@unknown default"
        switch connectionState {
        ^
    /Users/marcel/.pub-cache/hosted/pub.dartlang.org/flutter_reactive_ble-2.1.0/ios/Classes/ReactiveBlePlugin.m:2:9: fatal
    error: 'flutter_reactive_ble/flutter_reactive_ble-Swift.h' file not found
    #import <flutter_reactive_ble/flutter_reactive_ble-Swift.h>
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    1 error generated.
    note: Using new build system
    note: Building targets in parallel
    note: Planning build
    note: Constructing build description

Encountered error while building for device.

from flutter_reactive_ble.

werediver avatar werediver commented on May 23, 2024

@marcel-bluestone First, this your log indicates an issue different from what you mentioned initially, so, I guess, the initial issue has been solved by some of the cleaning steps.

Second, the log is quite informative. Have you analyzed it? Pay attention to this, in particular:

'CBManagerState' has been marked as being introduced
    in iOS 10.0 here, but the deployment target is iOS 8.0.0

Is your deployment target set to iOS 8.0? Unfortunately, iOS 10.0 is required for the current implementation to work. If iOS 8.0 as the deployment target is not a hard requirement for you, just change it to iOS 10.0.

from flutter_reactive_ble.

marcel-bluestone avatar marcel-bluestone commented on May 23, 2024

Thanks for your update. The problem is that I am using multiple packages, and each one seems to automatically set a different deployment target for the package. So the one at the project level says 12.4. But I did a search and replace now, and set all of the deployment targets in the project to 12.4.

However the error is still there:

`flutter build ios --debug
Building com.bluestone-tec.sensorMapping for device (ios)...
Automatically signing iOS for device deployment using specified development team in Xcode project: VCY32VM6H4
Running Xcode build...

Xcode build done. 15,2s
Failed to build iOS app
Error output from Xcode build:

** BUILD FAILED **

Xcode's output:

/Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:189417:26: warning: ambiguous expansion of macro 'MIN' [-Wambiguous-macro]
p1->aCoord[ii].f = MIN(p1->aCoord[ii].f, p2->aCoord[ii].f);
^
In module 'Darwin' imported from /Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:1077:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.4.sdk/usr/include/sys/param.h:215:9: note: expanding this definition of 'MIN'
#define MIN(a, b) (((a)<(b))?(a):(b))
^
/Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:13916:10: note: other definition of 'MIN'
# define MIN(A,B) ((A)<(B)?(A):(B))
^
/Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:189418:28: warning: ambiguous expansion of macro 'MAX' [-Wambiguous-macro]
p1->aCoord[ii+1].f = MAX(p1->aCoord[ii+1].f, p2->aCoord[ii+1].f);
^
In module 'Darwin' imported from /Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:1077:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.4.sdk/usr/include/sys/param.h:218:9: note: expanding this definition of 'MAX'
#define MAX(a, b) (((a)>(b))?(a):(b))
^
/Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:13919:10: note: other definition of 'MAX'
# define MAX(A,B) ((A)>(B)?(A):(B))
^
/Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:189423:26: warning: ambiguous expansion of macro 'MIN' [-Wambiguous-macro]
p1->aCoord[ii].i = MIN(p1->aCoord[ii].i, p2->aCoord[ii].i);
^
In module 'Darwin' imported from /Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:1077:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.4.sdk/usr/include/sys/param.h:215:9: note: expanding this definition of 'MIN'
#define MIN(a, b) (((a)<(b))?(a):(b))
^
/Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:13916:10: note: other definition of 'MIN'
# define MIN(A,B) ((A)<(B)?(A):(B))
^
/Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:189424:28: warning: ambiguous expansion of macro 'MAX' [-Wambiguous-macro]
p1->aCoord[ii+1].i = MAX(p1->aCoord[ii+1].i, p2->aCoord[ii+1].i);
^
In module 'Darwin' imported from /Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:1077:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.4.sdk/usr/include/sys/param.h:218:9: note: expanding this definition of 'MAX'
#define MAX(a, b) (((a)>(b))?(a):(b))
^
/Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:13919:10: note: other definition of 'MAX'
# define MAX(A,B) ((A)>(B)?(A):(B))
^
/Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:189474:12: warning: ambiguous expansion of macro 'MAX' [-Wambiguous-macro]
x1 = MAX(DCOORD(p->aCoord[jj]), DCOORD(aCell[ii].aCoord[jj]));
^
In module 'Darwin' imported from /Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:1077:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.4.sdk/usr/include/sys/param.h:218:9: note: expanding this definition of 'MAX'
#define MAX(a, b) (((a)>(b))?(a):(b))
^
/Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:13919:10: note: other definition of 'MAX'
# define MAX(A,B) ((A)>(B)?(A):(B))
^
/Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:189475:12: warning: ambiguous expansion of macro 'MIN' [-Wambiguous-macro]
x2 = MIN(DCOORD(p->aCoord[jj+1]), DCOORD(aCell[ii].aCoord[jj+1]));
^
In module 'Darwin' imported from /Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:1077:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.4.sdk/usr/include/sys/param.h:215:9: note: expanding this definition of 'MIN'
#define MIN(a, b) (((a)<(b))?(a):(b))
^
/Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:13916:10: note: other definition of 'MIN'
# define MIN(A,B) ((A)<(B)?(A):(B))
^
/Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:190747:27: warning: ambiguous expansion of macro 'MAX' [-Wambiguous-macro]
pRtree->nRowEst = MAX(nRow, RTREE_MIN_ROWEST);
^
In module 'Darwin' imported from /Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:1077:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.4.sdk/usr/include/sys/param.h:218:9: note: expanding this definition of 'MAX'
#define MAX(a, b) (((a)>(b))?(a):(b))
^
/Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:13919:10: note: other definition of 'MAX'
# define MAX(A,B) ((A)>(B)?(A):(B))
^
/Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:193576:20: warning: implicit conversion loses integer precision: 'sqlite3_int64' (aka 'long long') to 'u32' (aka 'unsigned int')
[-Wshorten-64-to-32]
pBlob->iSize = nBlob;
~ ^~~~~
/Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:209499:9: warning: code will never be executed [-Wunreachable-code]
fts5YYMINORTYPE fts5yylhsminor;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:212210:23: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
pToken->n = (z2 - z);
~ ~~~^~~
/Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:212222:23: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
pToken->n = (z2 - z);
~ ~~~^~~
/Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:216079:14: warning: ambiguous expansion of macro 'MIN' [-Wambiguous-macro]
int nCmp = MIN(pLeft->n, pRight->n);
^
In module 'Darwin' imported from /Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:1077:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.4.sdk/usr/include/sys/param.h:215:9: note: expanding this definition of 'MIN'
#define MIN(a, b) (((a)<(b))?(a):(b))
^
/Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:13916:10: note: other definition of 'MIN'
# define MIN(A,B) ((A)<(B)?(A):(B))
^
/Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:217064:18: warning: ambiguous expansion of macro 'MIN' [-Wambiguous-macro]
int iEod = MIN(pIter->iEndofDoclist, pIter->pLeaf->szLeaf);
^
In module 'Darwin' imported from /Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:1077:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.4.sdk/usr/include/sys/param.h:215:9: note: expanding this definition of 'MIN'
#define MIN(a, b) (((a)<(b))?(a):(b))
^
/Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:13916:10: note: other definition of 'MIN'
# define MIN(A,B) ((A)<(B)?(A):(B))
^
/Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:217737:19: warning: ambiguous expansion of macro 'MIN' [-Wambiguous-macro]
nCmp = (u32)MIN(nNew, nTerm-nMatch);
^
In module 'Darwin' imported from /Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:1077:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.4.sdk/usr/include/sys/param.h:215:9: note: expanding this definition of 'MIN'
#define MIN(a, b) (((a)<(b))?(a):(b))
^
/Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:13916:10: note: other definition of 'MIN'
# define MIN(A,B) ((A)<(B)?(A):(B))
^
/Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:218544:16: warning: ambiguous expansion of macro 'MIN' [-Wambiguous-macro]
int nChunk = MIN(nRem, pSeg->pLeaf->szLeaf - pSeg->iLeafOffset);
^
In module 'Darwin' imported from /Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:1077:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.4.sdk/usr/include/sys/param.h:215:9: note: expanding this definition of 'MIN'
#define MIN(a, b) (((a)<(b))?(a):(b))
^
/Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:13916:10: note: other definition of 'MIN'
# define MIN(A,B) ((A)<(B)?(A):(B))
^
/Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:218566:16: warning: ambiguous expansion of macro 'MIN' [-Wambiguous-macro]
nChunk = MIN(nRem, pData->szLeaf - 4);
^
In module 'Darwin' imported from /Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:1077:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.4.sdk/usr/include/sys/param.h:215:9: note: expanding this definition of 'MIN'
#define MIN(a, b) (((a)<(b))?(a):(b))
^
/Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:13916:10: note: other definition of 'MIN'
# define MIN(A,B) ((A)<(B)?(A):(B))
^
/Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:218652:12: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
return p - (pa);
~~~~~~ ^~~~~~~
/Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:218773:30: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
pIter->base.nData = aOut - pIter->poslist.p;
~ ~~~~~^~~~~~~~~~~~~~~~~~
/Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:218880:14: warning: ambiguous expansion of macro 'MIN' [-Wambiguous-macro]
nSeg = MIN(pStruct->aLevel[iLevel].nSeg, nSegment);
^
In module 'Darwin' imported from /Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:1077:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.4.sdk/usr/include/sys/param.h:215:9: note: expanding this definition of 'MIN'
#define MIN(a, b) (((a)<(b))?(a):(b))
^
/Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:13916:10: note: other definition of 'MIN'
# define MIN(A,B) ((A)<(B)?(A):(B))
^
/Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:219393:14: warning: ambiguous expansion of macro 'MIN' [-Wambiguous-macro]
int nMin = MIN(pPage->term.n, nTerm);
^
In module 'Darwin' imported from /Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:1077:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.4.sdk/usr/include/sys/param.h:215:9: note: expanding this definition of 'MIN'
#define MIN(a, b) (((a)<(b))?(a):(b))
^
/Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:13916:10: note: other definition of 'MIN'
# define MIN(A,B) ((A)<(B)?(A):(B))
^
/Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:220604:40: warning: ambiguous expansion of macro 'MIN' [-Wambiguous-macro]
assert_nc( memcmp(pToken, pTerm, MIN(nToken, nTerm))<=0 );
^
In module 'Darwin' imported from /Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:1077:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.4.sdk/usr/include/sys/param.h:215:9: note: expanding this definition of 'MIN'
#define MIN(a, b) (((a)<(b))?(a):(b))
^
/Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:13916:10: note: other definition of 'MIN'
# define MIN(A,B) ((A)<(B)?(A):(B))
^
/Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:221403:53: warning: ambiguous expansion of macro 'MIN' [-Wambiguous-macro]
res = fts5Memcmp(&pLeaf->p[iOff], zIdxTerm, MIN(nTerm, nIdxTerm));
^
In module 'Darwin' imported from /Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:1077:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.4.sdk/usr/include/sys/param.h:215:9: note: expanding this definition of 'MIN'
#define MIN(a, b) (((a)<(b))?(a):(b))
^
/Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:13916:10: note: other definition of 'MIN'
# define MIN(A,B) ((A)<(B)?(A):(B))
^
/Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:221731:52: warning: ambiguous expansion of macro 'MIN' [-Wambiguous-macro]
iOff += fts5DecodePoslist(pRc, pBuf, &a[iOff], MIN(n-iOff, nPos));
^
In module 'Darwin' imported from /Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:1077:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.4.sdk/usr/include/sys/param.h:215:9: note: expanding this definition of 'MIN'
#define MIN(a, b) (((a)<(b))?(a):(b))
^
/Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:13916:10: note: other definition of 'MIN'
# define MIN(A,B) ((A)<(B)?(A):(B))
^
/Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:222862:40: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
pSorter->aIdx[i] = &aBlob[nBlob] - a;
~ ~~~~~~~~~~~~~~^

/Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:226527:19: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
is = zCsr - (unsigned char
)pText;
~ ~~~~~^~~~~~~~~~~~~~~~~~~~~~~
/Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:226534:21: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
is = zCsr - (unsigned char*)pText;
~ ~~~~~^~~~~~~~~~~~~~~~~~~~~~~
/Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:226584:17: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
ie = zCsr - (unsigned char*)pText;
~ ~~~~~^~~~~~~~~~~~~~~~~~~~~~~
/Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:226588:37: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
rc = xToken(pCtx, 0, aFold, zOut-aFold, is, ie);
~~~~~~ ~~~~^~~~~~
/Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:228881:18: warning: ambiguous expansion of macro 'MIN' [-Wambiguous-macro]
int nCmp = MIN(nTerm, pCsr->nLeTerm);
^
In module 'Darwin' imported from /Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:1077:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.4.sdk/usr/include/sys/param.h:215:9: note: expanding this definition of 'MIN'
#define MIN(a, b) (((a)<(b))?(a):(b))
^
/Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:13916:10: note: other definition of 'MIN'
# define MIN(A,B) ((A)<(B)?(A):(B))
^
/Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:228953:20: warning: ambiguous expansion of macro 'MIN' [-Wambiguous-macro]
int nCmp = MIN(nTerm, pCsr->nLeTerm);
^
In module 'Darwin' imported from /Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:1077:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.4.sdk/usr/include/sys/param.h:215:9: note: expanding this definition of 'MIN'
#define MIN(a, b) (((a)<(b))?(a):(b))
^
/Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:13916:10: note: other definition of 'MIN'
# define MIN(A,B) ((A)<(B)?(A):(B))
^
/Users/marcel/StudioProjects/sensor_mapping/ios/Pods/SQLCipher/sqlite3.c:62996:20: warning: unused function 'sqlite3PagerState' [-Wunused-function]
SQLITE_PRIVATE int sqlite3PagerState(Pager *pPager){
^
111 warnings generated.
/Users/marcel/.pub-cache/hosted/pub.dartlang.org/flutter_reactive_ble-2.1.0/ios/Classes/BleData extras/BLEStatus.swift:4:5: warning: switch covers known cases, but 'CBManagerState' may have additional unknown
values, possibly added in future versions
switch (centralState) {
^
/Users/marcel/.pub-cache/hosted/pub.dartlang.org/flutter_reactive_ble-2.1.0/ios/Classes/BleData extras/BLEStatus.swift:4:5: note: handle unknown values using "@unknown default"
switch (centralState) {
^
/Users/marcel/.pub-cache/hosted/pub.dartlang.org/flutter_reactive_ble-2.1.0/ios/Classes/BleData extras/ConnectionState.swift:4:5: warning: switch covers known cases, but 'CBPeripheralState' may have
additional unknown values, possibly added in future versions
switch connectionState {
^
/Users/marcel/.pub-cache/hosted/pub.dartlang.org/flutter_reactive_ble-2.1.0/ios/Classes/BleData extras/ConnectionState.swift:4:5: note: handle unknown values using "@unknown default"
switch connectionState {
^
/Users/marcel/.pub-cache/hosted/pub.dartlang.org/sqflite_sqlcipher-1.0.0+6/ios/Classes/SqfliteSqlCipherPlugin.m:654:15: warning: treating Unicode character as whitespace [-Wunicode-whitespace]
} else {
^
1 warning generated.
1 error generated.
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description

Encountered error while building for device.
`

from flutter_reactive_ble.

werediver avatar werediver commented on May 23, 2024

@marcel-bluestone "The error" vanished after you cleaned up Xcode caches. Then there was a deployment target unsupported by "flutter_reactive_ble", which you "fixed" (I'm afraid, not in the right way). This is yet another issue (and the log does not contain the actual error, only notes and warnings).

Regarding the deployment target, please set at least iOS 10.0 in your app build settings, not anywhere else. You should not modify anything managed by CocoaPods.

Your new issue does not appear to be logged in the excerpt you included, therefore I cannot give you a hint this time. But I'd recommend you to research such general issues on your own, because they are not specific to this library (or ask questions on Stack Overflow, a relevant subreddit, or your favorite forum).

from flutter_reactive_ble.

remonh87 avatar remonh87 commented on May 23, 2024

For now I close the issue. If you still encounter problems you can reopen it or log another issue.

from flutter_reactive_ble.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.