I try to use panoramaGL
framework and try to add it to my static library. So I've imported it to the project, add CoreGraphics
framework but have an issue Unknown type name 'CGFloat'
in PLStructs.h. When I Cmd+click on the CGFloat
in Xcode - I go to the CGBase.h
in CoreGraphics
framework. Try to clean the project and replace the frameworks - the result is the same. Waiting for your help.
The solution is simple:
#import <UIKit/UIKit.h>
Also don't need a full CoreGraphics.h. This is enough:
#import <CoreGraphics/CGBase.h>
You actually don't need to import the full UIKit
. This is enough:
#import <CoreGraphics/CoreGraphics.h>
The same problem came for me in Cocos2D.
The solution is
Go to build settings. In Architectures field you might have "Standard architectures (armv7, armv7s, arm64).
The main cause for the problem is arm64. So the best way is to use "armv7" in the field.
We keep the standard architecture as is n "valid architectures"
Hope it helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With