I use react native 0.65.1 and Xcode 10 to create a react native app.
I have changed the objectVersion in ios/project.xcodeproj/project.pbxproj and ios/Pods/Pods.xcodeproj/project.pbxproj from 54 to 51 so I can open the xcworkspace file in Xcode 10. Other than that I pretty much follow the instructions on react native website and didn't change anything.
When running
npx react-native run-ios
in the terminal, I get the following errors mainly (but not all) in the file "/node_modules/react-native/React/Views/RCTDatePickerManager.m":
RCTDatePickerManager.m:33:5: error: expected a type
UIDatePickerStyle,
^
RCTDatePickerManager.m:35:22: error: use of undeclared identifier 'UIDatePicker
StyleCompact'
#"compact" : #(UIDatePickerStyleCompact),
^
RCTDatePickerManager.m:36:22: error: use of undeclared identifier 'UIDatePicker
StyleWheels'
#"spinner" : #(UIDatePickerStyleWheels),
^
RCTDatePickerManager.m:37:21: error: use of undeclared identifier 'UIDatePicker
StyleInline'; did you mean 'UIDatePickerModeTime'?
#"inline" : #(UIDatePickerStyleInline),
^~~~~~~~~~~~~~~~~~~~~~~
UIDatePickerModeTime
In file included from RCTDatePickerManager.m:8:
In file included from RCTDatePickerManager.h:8:
ios/Pods/Headers/Private/React-Core/React/RCTConvert.h:228:17: note: expanded from macro 'RCT_ENUM_CONVERTER'
mapping = values; \
^
In module 'UIKit' imported from ios/Pods/Target Support Files/React-Core/React-Core-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/UIKi
t.framework/Headers/UIDatePicker.h:16:5: note: 'UIDatePickerModeTime' declared here
UIDatePickerModeTime, // Displays hour, minute, and optionally AM/PM designation depending on the locale setting (e.g. 6 | 53 | PM)
^
RCTDatePickerManager.m:39:5: error: use of undeclared identifier 'UIDatePickerS
tyleAutomatic'; did you mean 'UIActionSheetStyleAutomatic'?
UIDatePickerStyleAutomatic,
^~~~~~~~~~~~~~~~~~~~~~~~~~
UIActionSheetStyleAutomatic
In file included from /node_modules/react-native/React/Views/RCTDatePickerManager.m:8:
In file included from /node_modules/react-native/React/Views/RCTDatePickerManager.h:8:
/ios/Pods/Headers/Private/React-Core/React/RCTConvert.h:230:67: note: expanded from macro 'RCT_ENUM_CONVERTER'
return _RCT_CAST(type, [RCTConvertEnumValue(#type, mapping, #(default), json) getter]); \
^
ios/Pods/Headers/Private/React-Core/React/RCTConvert.h:216:31: note: expanded from macro '_RCT_CAST'
#define _RCT_CAST(type, expr) expr
^
In module 'UIKit' imported from /ios/Pods/Target Support Files/React-Core/React-Core-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/UIKi
t.framework/Headers/UIActionSheet.h:20:5: note: 'UIActionSheetStyleAutomatic' declared here
UIActionSheetStyleAutomatic = -1, // take appearance from toolbar style otherwise uses 'default'
^
RCTDatePickerManager.m:32:1: error: implicit conversion of 'NSInteger' (aka 'lo
ng') to 'id' is disallowed with ARC
RCT_ENUM_CONVERTER(
^~~~~~~~~~~~~~~~~~~
In file included from RCTDatePickerManager.m:8:
In file included from RCTDatePickerManager.h:8:
/ios/Pods/Headers/Private/React-Core/React/RCTConvert.h:230:28: note: expanded from macro 'RCT_ENUM_CONVERTER'
return _RCT_CAST(type, [RCTConvertEnumValue(#type, mapping, #(default), json) getter]); \
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/ios/Pods/Headers/Private/React-Core/React/RCTConvert.h:216:31: note: expanded from macro '_RCT_CAST'
#define _RCT_CAST(type, expr) expr
^~~~
/RCTDatePickerManager.m:32:1: warning: incompatible integer to pointer conversio
n returning 'NSInteger' (aka 'long') from a function with result type 'id' [-Wint-conversion]
RCT_ENUM_CONVERTER(
^~~~~~~~~~~~~~~~~~~
In file included from /RCTDatePickerManager.m:8:
In file included from /RCTDatePickerManager.h:8:
/ios/Pods/Headers/Private/React-Core/React/RCTConvert.h:230:28: note: expanded from macro 'RCT_ENUM_CONVERTER'
return _RCT_CAST(type, [RCTConvertEnumValue(#type, mapping, #(default), json) getter]); \
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ios/Pods/Headers/Private/React-Core/React/RCTConvert.h:216:31: note: expanded from macro '_RCT_CAST'
#define _RCT_CAST(type, expr) expr
^~~~
/RCTDatePickerManager.m:93:7: error: unknown type name 'UIDatePickerStyle'; did
you mean 'UIDatePickerMode'?
UIDatePickerStyle style = [RCTConvert UIDatePickerStyle:json];
^~~~~~~~~~~~~~~~~
UIDatePickerMode
In module 'UIKit' imported from /ios/Pods/Target Support Files/React-Core/React-Core-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/UIKi
t.framework/Headers/UIDatePicker.h:15:28: note: 'UIDatePickerMode' declared here
typedef NS_ENUM(NSInteger, UIDatePickerMode) {
^
RCTDatePickerManager.m:93:25: warning: incompatible pointer to integer conversi
on initializing 'UIDatePickerMode' (aka 'enum UIDatePickerMode') with an expression of type 'id' [-Wint-conversion]
UIDatePickerStyle style = [RCTConvert UIDatePickerStyle:json];
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
RCTDatePickerManager.m:94:12: error: property 'preferredDatePickerStyle' not fo
und on object of type 'RCTDatePicker *'
view.preferredDatePickerStyle = style;
^
RCTDatePickerManager.m:96:12: error: property 'preferredDatePickerStyle' not fo
und on object of type 'RCTDatePicker *'
view.preferredDatePickerStyle = UIDatePickerStyleWheels;
^
RCTDatePickerManager.m:96:39: error: use of undeclared identifier 'UIDatePicker
StyleWheels'
view.preferredDatePickerStyle = UIDatePickerStyleWheels;
^
2 warnings and 10 errors generated.
file paths has been slightly modified for improved readability. Please kindly advice how to fix.
I had this exact problem, and the dispiriting experience of this being the only hit on google, with no response :D
For me, upgrading XCode fixed this. Everything was working locally as I'd recently upgraded XCode fully, but on Bitrise CI, I was getting the error. Bitrise lets you update XCode from the stacks tab.
I upgraded from 11.7 --> 12.4, and that resolved the issue.
Related
opencv installation using mingw32-make command in windows 10 platform, then likely end up in getting the below error.
Windows version : 10
OpenCv:3.2.0
Please suggest me in installing.
D:\installers\opencv\sources\modules\ts\src\ts_gtest.cpp: In constructor 'testing::internal::Mutex::Mutex()':
D:\installers\opencv\sources\modules\ts\src\ts_gtest.cpp:8829:45: error: cannot convert 'CRITICAL_SECTION* {aka _CRITICAL_SECTION*}' to '_RTL_CRITICAL_SECTION*' in initialization
critical_section_(new CRITICAL_SECTION) {
^
D:\installers\opencv\sources\modules\ts\src\ts_gtest.cpp:8830:48: error: cannot convert '_RTL_CRITICAL_SECTION*' to 'LPCRITICAL_SECTION {aka _CRITICAL_SECTION*}' for argument '1' to 'void InitializeCriticalSection(LPCRITICAL_SECTION)'
::InitializeCriticalSection(critical_section_);
^
D:\installers\opencv\sources\modules\ts\src\ts_gtest.cpp: In destructor 'testing::internal::Mutex::~Mutex()':
D:\installers\opencv\sources\modules\ts\src\ts_gtest.cpp:8840:46: error: cannot convert '_RTL_CRITICAL_SECTION*' to 'PCRITICAL_SECTION {aka _CRITICAL_SECTION*}' for argument '1' to 'void DeleteCriticalSection(PCRITICAL_SECTION)'
::DeleteCriticalSection(critical_section_);
^
D:\installers\opencv\sources\modules\ts\src\ts_gtest.cpp: In member function 'void testing::internal::Mutex::Lock()':
D:\installers\opencv\sources\modules\ts\src\ts_gtest.cpp:8848:43: error: cannot convert '_RTL_CRITICAL_SECTION*' to 'LPCRITICAL_SECTION {aka _CRITICAL_SECTION*}' for argument '1' to 'void EnterCriticalSection(LPCRITICAL_SECTION)'
::EnterCriticalSection(critical_section_);
^
D:\installers\opencv\sources\modules\ts\src\ts_gtest.cpp: In member function 'void testing::internal::Mutex::Unlock()':
D:\installers\opencv\sources\modules\ts\src\ts_gtest.cpp:8858:43: error: cannot convert '_RTL_CRITICAL_SECTION*' to 'LPCRITICAL_SECTION {aka _CRITICAL_SECTION*}' for argument '1' to 'void LeaveCriticalSection(LPCRITICAL_SECTION)'
::LeaveCriticalSection(critical_section_);
^
D:\installers\opencv\sources\modules\ts\src\ts_gtest.cpp: In member function 'void testing::internal::Mutex::ThreadSafeLazyInit()':
D:\installers\opencv\sources\modules\ts\src\ts_gtest.cpp:8879:27: error: cannot convert 'CRITICAL_SECTION* {aka _CRITICAL_SECTION*}' to '_RTL_CRITICAL_SECTION*' in assignment
critical_section_ = new CRITICAL_SECTION;
^
D:\installers\opencv\sources\modules\ts\src\ts_gtest.cpp:8880:54: error: cannot convert '_RTL_CRITICAL_SECTION*' to 'LPCRITICAL_SECTION {aka _CRITICAL_SECTION*}' for argument '1' to 'void InitializeCriticalSection(LPCRITICAL_SECTION)'
::InitializeCriticalSection(critical_section_);
^
modules\ts\CMakeFiles\opencv_ts.dir\build.make:237: recipe for target 'modules/ts/CMakeFiles/opencv_ts.dir/src/ts_gtest.cpp.obj' failed
mingw32-make[2]: *** [modules/ts/CMakeFiles/opencv_ts.dir/src/ts_gtest.cpp.obj] Error 1
CMakeFiles\Makefile2:5379: recipe for target 'modules/ts/CMakeFiles/opencv_ts.dir/all' failed
mingw32-make[1]: *** [modules/ts/CMakeFiles/opencv_ts.dir/all] Error 2
Makefile:159: recipe for target 'all' failed
mingw32-make: *** [all] Error 2
I also faced the same problem while trying to build OpenCV 3.2.0 using mingw32 on Windows10. I searched a bit to find a fix on Github for similar problem. It said the problem was:
MinGW defined _CRITICAL_SECTION and _RTL_CRITICAL_SECTION as two separate (equivalent) structs, instead of using typedef
So, you have to add another typedef GTEST_CRITICAL_SECTION for _CRITICAL_SECTION and _RTL_CRITICAL_SECTION and use this typedef for either case.
Here is what to do :
Edit "ts_gtest.h" which is inside "opencv\sources\modules\ts\include\opencv2\ts\"
Replace this line (probably line 723)
// assuming CRITICAL_SECTION is a typedef of _RTL_CRITICAL_SECTION.
// This assumption is verified by
// WindowsTypesTest.CRITICAL_SECTIONIs_RTL_CRITICAL_SECTION.
struct _RTL_CRITICAL_SECTION;
with
#if GTEST_OS_WINDOWS_MINGW
// MinGW defined _CRITICAL_SECTION and _RTL_CRITICAL_SECTION as two
// separate (equivalent) structs, instead of using typedef
typedef struct _CRITICAL_SECTION GTEST_CRITICAL_SECTION;
#else
// Assume CRITICAL_SECTION is a typedef of _RTL_CRITICAL_SECTION.
// This assumption is verified by
// WindowsTypesTest.CRITICAL_SECTIONIs_RTL_CRITICAL_SECTION
typedef struct _RTL_CRITICAL_SECTION GTEST_CRITICAL_SECTION;
#endif
Replace this line (probably on line 3060 before your edit - line number would have changed as you modified first part)
_RTL_CRITICAL_SECTION* critical_section_;
with
GTEST_CRITICAL_SECTION* critical_section_;
These two changes should fix your above error.
It was fixed by using TDM-gcc mingw compiler.
I really need some help on this. I have currently migrated my cocos2d-x project to a newer version of Cocos2D and I've got everything ok, but for now, I'm stucked into something that I'm not able to solve it by myself.
My project is all overwritten to C++11 and looks like it is not able to compile iOS Libraries as they use Objective-C.
My project has the following settings, in the Build Settings:
Under Linking -> Link with Standard Libraries -> NO
Under Apple LLVM7.0 - Language -> C Language Dialect -> Compiler Default
Under Apple LLVM7.0 - Language -> Compile Sources As -> According To File Type
Under Apple LLVM7.0 - Language - C++ -> C++ Language Dialect -> C++11[-std=C++11]
Under Apple LLVM7.0 - Language - C++ -> C++ Standard Library -> Compiler Default
And the error that is being displayed is the following:
In file included from /Users/guifranchi/Desktop/Projetos de Games/cocos2d-x-2.2.6/projects/NewFlappyThatBalloon/Classes/AppDelegate.cpp:1:
In file included from /Users/guifranchi/Desktop/Projetos de Games/cocos2d-x-2.2.6/projects/NewFlappyThatBalloon/Classes/AppDelegate.h:5:
In file included from /Users/guifranchi/Desktop/Projetos de Games/cocos2d-x-2.2.6/projects/NewFlappyThatBalloon/proj.ios/GoogleMobileAds.framework/Headers/GoogleMobileAds.h:7:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:8:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:435:1: error: expected unqualified-id
#class NSString, Protocol;
^
^
In file included from /Users/guifranchi/Desktop/Projetos de Games/cocos2d-x-2.2.6/projects/NewFlappyThatBalloon/Classes/AppDelegate.cpp:1:
In file included from /Users/guifranchi/Desktop/Projetos de Games/cocos2d-x-2.2.6/projects/NewFlappyThatBalloon/Classes/AppDelegate.h:5:
In file included from /Users/guifranchi/Desktop/Projetos de Games/cocos2d-x-2.2.6/projects/NewFlappyThatBalloon/proj.ios/GoogleMobileAds.framework/Headers/GoogleMobileAds.h:7:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:10:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:5:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:8:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSZone.h:8:1: error: expected unqualified-id
#class NSString;
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSZone.h:18:64: error: unknown type name 'NSString'
FOUNDATION_EXPORT void NSSetZoneName(NSZone * __nullable zone, NSString *name)NS_SWIFT_UNAVAILABLE("Zone-based memory management is unavailable");
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSZone.h:19:19: error: unknown type name 'NSString'
FOUNDATION_EXPORT NSString *NSZoneName(NSZone * __nullable zone) NS_SWIFT_UNAVAILABLE("Zone-based memory management is unavailable");
^
In file included from /Users/guifranchi/Desktop/Projetos de Games/cocos2d-x-2.2.6/projects/NewFlappyThatBalloon/Classes/AppDelegate.cpp:1:
In file included from /Users/guifranchi/Desktop/Projetos de Games/cocos2d-x-2.2.6/projects/NewFlappyThatBalloon/Classes/AppDelegate.h:5:
In file included from /Users/guifranchi/Desktop/Projetos de Games/cocos2d-x-2.2.6/projects/NewFlappyThatBalloon/proj.ios/GoogleMobileAds.framework/Headers/GoogleMobileAds.h:7:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:10:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:5:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:10:1: error: expected unqualified-id
#class NSInvocation, NSMethodSignature, NSCoder, NSString, NSEnumerator;
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:11:1: error: expected unqualified-id
#class Protocol;
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:17:1: error: expected unqualified-id
#protocol NSCopying
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
I am trying to compile a program, I am trying to track an object using openCV.
Now whenever i compile the code i get the following error.
disguise_gui_1306.cpp:101:5: error: ‘FaceRecognizer’ was not declared in this scope
Ptr model, mouthModel;
^
disguise_gui_1306.cpp:101:19: error: template argument 1 is invalid
Ptr model, mouthModel;
^
disguise_gui_1306.cpp:101:26: error: invalid type in declaration before ‘,’ token
Ptr model, mouthModel;
^
disguise_gui_1306.cpp: In function ‘void snapshotCB(Fl_Widget*, void*)’:
disguise_gui_1306.cpp:232:40: error: base operand of ‘->’ is not a pointer
int predictedMouthLabel = mouthModel->predict(testSample);
^
disguise_gui_1306.cpp:242:31: error: base operand of ‘->’ is not a pointer
int predictedLabel = model->predict(testSample);
^
disguise_gui_1306.cpp:260:29: error: base operand of ‘->’ is not a pointer
int predictedLabel = model->predict(testSample);
^
disguise_gui_1306.cpp: In function ‘void
trainFaceRecogniserModel(std::vector, std::vector)’:
disguise_gui_1306.cpp:394:39: error: ‘createEigenFaceRecognizer’ was not declared in this scope
model = createEigenFaceRecognizer();
^
disguise_gui_1306.cpp:395:10: error: base operand of ‘->’ is not a pointer
model->train(img, lab);
^
disguise_gui_1306.cpp: In function ‘int main(int, char**)’:
disguise_gui_1306.cpp:416:39: error: ‘createEigenFaceRecognizer’ was not
declared in this scope
model = createEigenFaceRecognizer();
^
disguise_gui_1306.cpp:417:10: error: base operand of ‘->’ is not a pointer
model->train(images, labels);
^
disguise_gui_1306.cpp:432:15: error: base operand of ‘->’ is not a pointer
mouthModel->train(mouthimages, mouthlabels);
While when the run the same on my friends laptop it compiles smoothly.
We are same OS(debian),OpenCV 3.0.0-rc1.
As per my research this problem should only arise if m using older version of openCV2.3.
I have been trying various solutions like adding contrib.hpp and all.
But nothing seems to help.
Kindly help.
Was your opencv3 built with OPENCV_EXTRA_MODULES_PATH option in make?
-D OPENCV_EXTRA_MODULES_PATH=</path/to/opencv_contrib>/modules
As mentioned above, first check if OpenCV was compiled with contrib modules as described in https://docs.opencv.org/4.x/d7/d9f/tutorial_linux_install.html
then:
Add the inlude directories in your cmake CMakeLists.txt as described in
https://docs.opencv.org/4.x/db/df5/tutorial_linux_gcc_cmake.html ; an example:
cmake_minimum_required(VERSION 2.8)
project( DisplayImage )
find_package( OpenCV REQUIRED )
include_directories( "/home/user/opencv-4.x","/home/user/opencv_contrib-4.x" )
add_executable( DisplayImage DisplayImage.cpp )
target_link_libraries( DisplayImage ${OpenCV_LIBS} )
In your program.cpp file include the libraries
#include <opencv2/opencv.hpp>
#include <opencv2/face.hpp>
#include <opencv2/highgui.hpp>
Follow the correct name spaces described per version of OpneCV in https://docs.opencv.org/4.5.5/dd/d7c/classcv_1_1face_1_1EigenFaceRecognizer.html or de FaceRecognizer you use; for example
Ptr<cv::face::FaceRecognizer> model = cv::face::EigenFaceRecognizer::create();
I have fixed a bunch of podspec creation errors. Here is the output from pod lib lint:
-> KTPhotosViewController (1.0.0)
- WARN | [iOS] pop/pop/POPDecayAnimationInternal.h:61:11: warning: absolute value function 'fabsf' given an argument of type 'const CGFloat' (aka 'const double') but has parameter of type 'float' which may cause truncation of value [-Wabsolute-value]
- NOTE | [iOS] pop/pop/POPDecayAnimationInternal.h:61:11: note: use function 'std::abs' instead
- NOTE | [iOS] pop/pop/POPDecayAnimationInternal.h:61:11: note: include the header <cmath> or explicitly provide a declaration for 'std::abs'
- WARN | [iOS] pop/pop/POPSpringAnimationInternal.h:49:14: warning: absolute value function 'fabsf' given an argument of type 'double' but has parameter of type 'float' which may cause truncation of value [-Wabsolute-value]
- NOTE | [iOS] pop/pop/POPSpringAnimationInternal.h:49:14: note: use function 'std::abs' instead
- NOTE | [iOS] pop/pop/POPSpringAnimationInternal.h:49:14: note: include the header <cmath> or explicitly provide a declaration for 'std::abs'
- WARN | [iOS] pop/pop/POPSpringAnimationInternal.h:49:67: warning: absolute value function 'fabsf' given an argument of type 'double' but has parameter of type 'float' which may cause truncation of value [-Wabsolute-value]
- NOTE | [iOS] pop/pop/POPSpringAnimationInternal.h:49:67: note: use function 'std::abs' instead
- NOTE | [iOS] pop/pop/POPSpringAnimationInternal.h:49:67: note: include the header <cmath> or explicitly provide a declaration for 'std::abs'
- WARN | IDMPhotoBrowser/Classes/IDMPhotoBrowser.m:298:26: warning: using integer absolute value function 'abs' when argument is of floating point type [-Wabsolute-value]
- NOTE | IDMPhotoBrowser/Classes/IDMPhotoBrowser.m:298:26: note: use function 'fabsf' instead
- WARN | IDMPhotoBrowser/Classes/IDMPhotoBrowser.m:431:27: warning: using integer absolute value function 'abs' when argument is of floating point type [-Wabsolute-value]
- NOTE | [iOS] IDMPhotoBrowser/Classes/IDMPhotoBrowser.m:431:27: note: use function 'fabsf' instead
- WARN | IDMPhotoBrowser/Classes/IDMPhotoBrowser.m:1256:42: warning: 'setCompletionHandler:' is deprecated: first deprecated in iOS 8.0 - Use completionWithItemsHandler instead. [-Wdeprecated-declarations]
- NOTE | /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIActivityViewController.h:19:69: note: property 'completionHandler' is declared deprecated here
- NOTE | /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIActivityViewController.h:19:69: note: 'setCompletionHandler:' has been explicitly marked deprecated here
- NOTE | [iOS] IDMPhotoBrowser/Classes/IDMPhotoBrowser.m:431:27: note: use function 'fabs' instead
Pods project available at `/var/folders/d7/_7pl6k7d7nz6k0vhw3d8tnqm0000gn/T/CocoaPods/Lint/Pods/Pods.xcodeproj` for inspection.
My pod spec dependencies are:
s.frameworks = 'UIKit', 'Foundation'
s.dependency 'Haneke'
s.dependency 'DACircularProgress'
s.dependency 'IDMPhotoBrowser'
s.dependency 'AFNetworking'
I am not sure how to resolve dependency warnings and force validation.
Based on the link provided by Meet, all I had to do was validate using the --allow-warnings option.
I'm currently trying to compile a tweak using theos on my iPhone 5s on 8.1.1 over ssh.
I used an open-sourced one called EasyRespring that I found on github which is claimed to be iOS 8 compatible.
After copying all the files from it and running make, I'm thrown a slew of errors that I'm having trouble deciphering.
I can provide any extra information if necessary.
drop-it-like-its-hotspot:/private/var/easyrespring root# make
/private/var/easyrespring/theos/makefiles/targets/Darwin-arm64/iphone.mk:43: Targeting iOS 4.0 and higher is not supported with iphone-gcc. Forcing clang.
/private/var/easyrespring/theos/makefiles/targets/Darwin-arm64/iphone.mk:53: Deploying to iOS 3.0 while building for 6.0 will generate armv7-only binaries.
Making all for tweak EasyRespring...
Preprocessing Tweak.xm...
Compiling Tweak.xm...
In file included from <built-in>:181:
In file included from <command line>:3:
In file included from /private/var/easyrespring/theos/Prefix.pch:4:
In file included from /private/var/easyrespring/theos/sdks/iPhoneOS8.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:9:
/private/var/easyrespring/theos/sdks/iPhoneOS8.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:18:1: error:
C++ requires a type specifier for all declarations
NS_CLASS_DEPRECATED_IOS(2_0, 5_0, "UIAcceleration has been replaced by t...
^~~~~~~~~~~~~~~~~~~~~~~
/private/var/easyrespring/theos/sdks/iPhoneOS8.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:18:26: error:
invalid suffix '_0' on integer constant
NS_CLASS_DEPRECATED_IOS(2_0, 5_0, "UIAcceleration has been replaced by t...
^
/private/var/easyrespring/theos/sdks/iPhoneOS8.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:18:98: error:
expected ';' after top level declarator
...5_0, "UIAcceleration has been replaced by the CoreMotion framework")
^
/private/var/easyrespring/theos/sdks/iPhoneOS8.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:26:1: error:
unexpected '#' in program
#property(nonatomic,readonly) UIAccelerationValue x;
^
/private/var/easyrespring/theos/sdks/iPhoneOS8.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:27:1: error:
unexpected '#' in program
#property(nonatomic,readonly) UIAccelerationValue y;
^
/private/var/easyrespring/theos/sdks/iPhoneOS8.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:28:1: error:
unexpected '#' in program
#property(nonatomic,readonly) UIAccelerationValue z;
^
/private/var/easyrespring/theos/sdks/iPhoneOS8.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:30:1: error:
'#end' must appear in an Objective-C context
#end
^
/private/var/easyrespring/theos/sdks/iPhoneOS8.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:32:1: error:
C++ requires a type specifier for all declarations
NS_CLASS_DEPRECATED_IOS(2_0, 5_0, "UIAccelerometer has been replaced by ...
^~~~~~~~~~~~~~~~~~~~~~~
/private/var/easyrespring/theos/sdks/iPhoneOS8.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:32:26: error:
invalid suffix '_0' on integer constant
NS_CLASS_DEPRECATED_IOS(2_0, 5_0, "UIAccelerometer has been replaced by ...
^
/private/var/easyrespring/theos/sdks/iPhoneOS8.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:32:99: error:
expected ';' after top level declarator
...5_0, "UIAccelerometer has been replaced by the CoreMotion framework")
^
/private/var/easyrespring/theos/sdks/iPhoneOS8.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:45:1: error:
unexpected '#' in program
#property(nonatomic) NSTimeInterval updateInterval; //May be capped at ...
^
/private/var/easyrespring/theos/sdks/iPhoneOS8.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:46:1: error:
unexpected '#' in program
#property(nonatomic,assign) id<UIAccelerometerDelegate> delegate;
^
/private/var/easyrespring/theos/sdks/iPhoneOS8.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:48:1: error:
'#end' must appear in an Objective-C context
#end
^
/private/var/easyrespring/theos/sdks/iPhoneOS8.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:50:35: error:
cannot find protocol declaration for 'NSObject'
#protocol UIAccelerometerDelegate<NSObject>
^
/private/var/easyrespring/theos/sdks/iPhoneOS8.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:53:24: error:
expected a type
- (void)accelerometer:(UIAccelerometer *)accelerometer didAccelerate:(UI...
^
/private/var/easyrespring/theos/sdks/iPhoneOS8.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:53:71: error:
expected a type
- (void)accelerometer:(UIAccelerometer *)accelerometer didAccelerate:(UIAc...
^
/private/var/easyrespring/theos/sdks/iPhoneOS8.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:53:118: error:
expected ':'
...didAccelerate:(UIAcceleration *)acceleration NS_DEPRECATED_IOS(2_0, 5_0);
^
/private/var/easyrespring/theos/sdks/iPhoneOS8.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:53:118: error:
expected ';' after method prototype
In file included from <built-in>:181:
In file included from <command line>:3:
In file included from /private/var/easyrespring/theos/Prefix.pch:4:
In file included from /private/var/easyrespring/theos/sdks/iPhoneOS8.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:10:
In file included from /private/var/easyrespring/theos/sdks/iPhoneOS8.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibility.h:11:
/private/var/easyrespring/theos/sdks/iPhoneOS8.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIBezierPath.h:12:20: error:
C++ requires a type specifier for all declarations
typedef NS_OPTIONS(NSUInteger, UIRectCorner) {
^~~~~~~~~~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [obj/Tweak.xm.1c1f697b.o] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [EasyRespring.all.tweak.variables] Error 2
Im not sure a better way to post that so I'll leave a link to the ghostbin here, perhaps it is more clear?
I'm wondering if it's a problem with the SDK headers you are using, the problem seems to be with random files unrelated to your project (According to the easyrespring files on github). Try a different version of the ios 8.1 SDK if you manually downloaded it. Maybe try this one? https://github.com/MP0w/iOS-Headers
Edit:
With the downloaded 8.1 headers you would replace the existing ones in the theos/sdks/ directory. Then you can try running make in your project again to see if it works properly.