Giter VIP home page Giter VIP logo

Comments (11)

AntonGrafton avatar AntonGrafton commented on May 19, 2024 4

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.

robingenz avatar robingenz commented on May 19, 2024 1

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.

robingenz avatar robingenz commented on May 19, 2024

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.

AntonGrafton avatar AntonGrafton commented on May 19, 2024

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.

AntonGrafton avatar AntonGrafton commented on May 19, 2024

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.

robingenz avatar robingenz commented on May 19, 2024

Can you reproduce your issue with the Capacitor ML Kit Plugin Demo project?

from capacitor-mlkit.

AntonGrafton avatar AntonGrafton commented on May 19, 2024

Can you reproduce your issue with the Capacitor ML Kit Plugin Demo project?

image

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.

robingenz avatar robingenz commented on May 19, 2024

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.

AntonGrafton avatar AntonGrafton commented on May 19, 2024

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.

seriousjelly avatar seriousjelly commented on May 19, 2024

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.

Rdevc avatar Rdevc commented on May 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.