Skip to content

fix: Unknown type for CGFloat #1015

New issue

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

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

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

sriteja777
Copy link

In older xcode versions with iOS 15, WDA build is failing with below error due to missing import. Added the import

In file included from appium/packages/appium/xcuitest/9.2.4/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgentLib/Routing/FBWebServer.m:24:
appium/packages/appium/xcuitest/9.2.4/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgentLib/Utilities/FBConfiguration.h:139:4: error: expected a type
 + (CGFloat)mjpegScalingFactor;
    ^
 appium/packages/appium/xcuitest/9.2.4/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgentLib/Utilities/FBConfiguration.h:139:1: warning: method has no return type specified; defaults to 'id' [-Wmissing-method-return-type]
 + (CGFloat)mjpegScalingFactor;
 ^
            (id)
 appium/packages/appium/xcuitest/9.2.4/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgentLib/Utilities/FBConfiguration.h:140:32: error: expected a type
 (void)setMjpegScalingFactor:(CGFloat)scalingFactor;
                                ^
 appium/packages/appium/xcuitest/9.2.4/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgentLib/Routing/FBWebServer.m:145:44: error: sending 'float' to parameter of incompatible type 'id'
     [FBConfiguration setMjpegScalingFactor:[scalingFactor floatValue]];

@@ -8,6 +8,7 @@
*/

#import <Foundation/Foundation.h>
#import <CoreGraphics/CoreGraphics.h>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe replace both imports with XCTest/XCTest.h

@mykola-mokhnach mykola-mokhnach changed the title Fix unknown type for CGFloat fix: Unknown type for CGFloat May 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants