Skip to content

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]];

*/

#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