Comments (11)
https://github.com/appium/appium-desktop/releases/tag/v1.20.0 and appium 1.20 have
from webdriveragent.
This happens on macOS 10.15 as well
from webdriveragent.
This was expected. We'd need to dynamically adjust https://github.com/appium/WebDriverAgent/blob/master/Scripts/carthage-wrapper.sh to select either x86_64 or arm64 arch depending on the current Mac architecture.
Also, it is necessary to dynamically adjust .xcconfig files to build arm64 for simulators on such macs as well. "Adjust" simply means to perform a sed/replace operation on the file
Unfortunately I cannot do it myself, since I don't have such machine to test on
from webdriveragent.
Yeah, I think so. > dynamic something
https://flutter.dev/docs/development/ios-project-migration is probably a similar thing.
Xcode 12.2 had no issue on both M1 (Big Sur) mac and Intel mac (10.15.7), but Xcode 12.3 RC had in both environments.
Carthage builds itself succeeded on both (Xcode 12.2 and 12.3) env via the wrapper.
from webdriveragent.
Carthage builds itself succeeded on both (Xcode 12.2 and 12.3) env via the wrapper.
They did succeed, although I assume these frameworks were only built for x64 on arm-based OS
from webdriveragent.
With below diff and removing tvOS and Mac stuff from Carthage directory, WDA for iOS simulator succeeded to build and run via Xcode 12.3 on Intel mac
It seems we must specify sdk target in carthage build as well.
--- a/Scripts/carthage-wrapper.sh
+++ b/Scripts/carthage-wrapper.sh
@@ -21,5 +21,6 @@ trap 'rm -f "$xcconfig"' INT TERM HUP EXIT
# the build will fail on lipo due to duplicate architectures.
echo 'EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_simulator__NATIVE_ARCH_64_BIT_x86_64__XCODE_1200 = arm64 arm64e armv7 armv7s armv6 armv8' >> $xcconfig
echo 'EXCLUDED_ARCHS = $(inherited) $(EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_$(EFFECTIVE_PLATFORM_SUFFIX)__NATIVE_ARCH_64_BIT_$(NATIVE_ARCH_64_BIT)__XCODE_$(XCODE_VERSION_MAJOR))' >> $xcconfig
+echo 'SUPPORTED_PLATFORMS = iphonesimulator' >> $xcconfig
Haven't tried, but echo 'SUPPORTED_PLATFORMS = iphoneos' >> $xcconfig
for real devices.
appletvos
and appletvsimulator
for tvOS.
removing tvOS and Mac stuff
This was because --platform iOS
argument also built tvOS and Mac when I added SUPPORTED_PLATFORMS
.
Probably I did not know well around this point...
from webdriveragent.
They did succeed, although I assume these frameworks were only built for x64 on arm-based OS
Yeah, I confirmed this.
Simulators got this architectural issue on M1 macOS. Real devices had no issue. (expected)
from webdriveragent.
Tried a bit.
--platform iOS
seems it does not work with SUPPORTED_PLATFORMS
. All schemes ran.
example:
./Scripts/carthage-wrapper.sh build --platform iOS --verbose
built Mac and tvOS stuff.
https://github.com/appium/WebDriverAgent/compare/master...KazuCocoa:set-supported-platform?expand=1
Potentially, we should copy what carthage does in build
.
But in this case, probably it is better to include libraries into this project to control build configuration only in this project...
from webdriveragent.
Potentially #434 will fix this issue as well. Will test tomorrow
(This idea is the same as mine in the above comment, But in this case, probably it is better to include libraries into this project to control build configuration only in this project..., so this should work well.)
from webdriveragent.
from webdriveragent.
Hi @KazuCocoa
Do you know if this fix is available in latest Appium Desktop / Appium projects? I am receiving same error message when trying iOS inspector.
error: Building for iOS Simulator, but the embedded framework 'CocoaAsyncSocket.framework' was built for iOS + iOS Simulator. (in target 'WebDriverAgentRunner' from project 'WebDriverAgent')
error: Building for iOS Simulator, but the embedded framework 'YYCache.framework' was built for iOS + iOS Simulator. (in target 'WebDriverAgentRunner' from project 'WebDriverAgent')
error: Building for iOS Simulator, but the linked and embedded framework 'YYCache.framework' was built for iOS + iOS Simulator. (in target 'WebDriverAgentLib' from project 'WebDriverAgent')
error: Building for iOS Simulator, but the linked and embedded framework 'CocoaAsyncSocket.framework' was built for iOS + iOS Simulator. (in target 'WebDriverAgentLib' from project 'WebDriverAgent')
from webdriveragent.
Related Issues (20)
- "Failed to find Matching Arch for input file" HOT 1
- Enterprise certificate packaging error HOT 1
- Can't chose simulator's XctestrunFile created by arm64 PC HOT 1
- Identifier '_XCTSetApplicationStateTimeout' is reserved because it starts with '_' followed by a capital letter HOT 11
- Mixing declarations and code is incompatible with standards before C99 HOT 1
- Iphone14,ios17.3,v5.15.8 Touch WebDriverAgent icon then crash。 HOT 3
- WebDriverAgentRunner HOT 2
- WDA crash when call screenshot API HOT 3
- build failure in new update 14.4 HOT 1
- window/size sometimes returns an incorrect size HOT 7
- Testing failed: No visible @interface for 'XCUIDevice' declares the selector 'pressButton:' Use of undeclared identifier 'XCUIDeviceButtonHome' Testing cancelled because the build failed. HOT 14
- 运行WebDriverAgent后出现的Automation Running hold both volume buttons to stop 提示蒙层能否去掉 HOT 2
- XCUIElementTypeAlert cannot be found HOT 1
- Expect outside of acceptAlertButtonSelector button will not automatically be click
- After installing the latest WebDriverAgent (WDA) on an iOS 17.4.1 system, the device can be tested using Xcode successfully. However, once the device is unplugged and I attempt to open WDA manually, it crashes. Has anyone experienced this problem? Assistance would be appreciated. HOT 4
- I want to keep the current screen brightness after starting wda. Is this possible? Currently, wda does not run after opening it, and the screen will automatically dim after a while. HOT 5
- IOS 17 real device, can't launch wda HOT 8
- The cloud real machine function flashes down
- Can I support devices with ios 9.0? HOT 1
- What is the minimum version of iOS system supported by MJPEG-Server HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webdriveragent.