Comments (11)
Yep. That solved it! By adding your code to my podfile solved it. Thank you!
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |configuration|
target.build_settings(configuration.name)['ONLY_ACTIVE_ARCH'] = 'NO'
end
end
end
from capacitor-mlkit.
I'm also curious as to why other plugins do not encounter this issue.
This has nothing to do with the plugin but with the pod. You should therefore post your question in https://github.com/googlesamples/mlkit.
This is currently the only solution/workaround I have found. If anyone has a better solution, I would appreciate any tips.
from capacitor-mlkit.
Thank you for your request. I use a Mac M1 myself and have no problems. Please provide a Minimal, Reproducible Example using this template in a public GitHub repository so I can debug the issue.
from capacitor-mlkit.
Hello, i could do that. But i just made a brand new project and installed the plugin and got this:
could not find module 'Capacitor' for target 'x86_64-apple-ios-simulator'; found: arm64-apple-ios-simulator, at: /Users/antonsjolander/capacitor-grafton/ios/DerivedData/9DBB5611-90DD-4AF2-B954-427EB5BB5F75/Build/Products/Debug-iphonesimulator/Capacitor/Capacitor.framework/Modules/Capacitor.swiftmodule import Capacitor
I've never seen that error until I installed your plugin.
"dependencies": {
"@capacitor-mlkit/barcode-scanning": "^5.3.0",
"@capacitor/android": "5.5.0",
"@capacitor/app": "5.0.6",
"@capacitor/core": "5.5.0",
"@capacitor/haptics": "5.0.6",
"@capacitor/ios": "5.5.0",
"@capacitor/keyboard": "5.0.6",
"@capacitor/status-bar": "5.0.6",
"@ionic/vue": "^7.0.0",
"@ionic/vue-router": "^7.0.0",
"ionicons": "^7.0.0",
"vue": "^3.2.45",
"vue-router": "^4.1.6"
},
"devDependencies": {
"@capacitor/cli": "5.5.0",
"@vitejs/plugin-legacy": "^4.0.2",
"@vitejs/plugin-vue": "^4.0.0",
"@vue/eslint-config-typescript": "^11.0.2",
"@vue/test-utils": "^2.3.0",
"cypress": "^12.7.0",
"eslint": "^8.35.0",
"eslint-plugin-vue": "^9.9.0",
"jsdom": "^22.1.0",
"typescript": "^5.1.6",
"vite": "^4.3.9",
"vitest": "^0.32.2",
"vue-tsc": "^1.0.24"
},
from capacitor-mlkit.
Thank you for your request. I use a Mac M1 myself and have no problems. Please provide a Minimal, Reproducible Example using this template in a public GitHub repository so I can debug the issue.
https://github.com/AntonGrafton/capacitor-grafton
from capacitor-mlkit.
Can you reproduce your issue with the Capacitor ML Kit Plugin Demo project?
from capacitor-mlkit.
Can you reproduce your issue with the Capacitor ML Kit Plugin Demo project?
I get the same error after trying to run your project on a IOS simulator. I'm using Xcode 15 by the way.
from capacitor-mlkit.
The problem seems to affect only simulators. I have no problems on my physical iPhone 13.
The following fix worked for me: robingenz/capacitor-mlkit-plugin-demo@484b919
from capacitor-mlkit.
The problem seems to affect only simulators. I have no problems on my physical iPhone 13. The following fix worked for me: robingenz/capacitor-mlkit-plugin-demo@484b919
Thank you Robin. I'll try! :)
from capacitor-mlkit.
I am having this issue:
- Latest XCode/MacOS version (fresh install)
- Latest Ionic (fresh install)
- Latest package version
Fails to build in simulator, although, I am able to open the generated XCode project and run in the simulator directly.
from capacitor-mlkit.
Hello!
Thank you for the provided solution, and I apologize in advance for responding to a closed issue.
Are you certain that this isn't merely activating a different 'Rosetta' way, serving as a quick fix rather than a real solution? It appears to be enabling a 'use all' approach, when it should be utilizing the ARM64 architecture instead. There will come a time when Apple will mandate 'no more Rosetta; build for ARM64.'
I'm also curious as to why other plugins do not encounter this issue.
Hope to hear from you and thank you in advance for reading and answering!
Kind regards
from capacitor-mlkit.
Related Issues (20)
- bug: cannot scan with phone facing an angle of 30-45 degrees (iOS) HOT 5
- feat(barcode-scanning): support all barcode types
- bug(barcode-scanning): `NullPointerException` during `startScan(...)` HOT 22
- ⚡ Capacitor 6 HOT 1
- refactor(barcode-scanning): throw error if no scan session is active
- refactor(barcode-scanning): do not automatically request permissions
- bug: flat orientation on ios HOT 9
- Focus in center/scanning box HOT 8
- bug: HOT 2
- feat: Subject segmentation HOT 5
- bug: iOS Corner points detection issue HOT 29
- feat(barcode-scanning): add `cornerPoints` option HOT 2
- bug: HOT 3
- bug: On IOS Emulator [error] - Error: Uncaught (in promise): Error: Not available on iOS HOT 5
- Bundle Google Play barcode scanning capabilities instead of having to download HOT 3
- Restored webview background color is hardcoded to white
- bug: Code39 scan results are incorrect HOT 2
- feat: Barcode scanner sometimes get bad value of EAN13 HOT 4
- bug(barcode-scanning): multiple results while scanning same barcodes HOT 15
- bug: Barcode-Scanner: Ionic apps using this package wont build for simulators in Xcode on arm64 Architecture (Macs with m-Series CPUS) 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 capacitor-mlkit.