Giter Site home page Giter Site logo

Could not find module 'SwiftLinkPreview' for target 'x86_64-apple-ios-simulator'; found: arm64, arm64-apple-ios-simulator` about swiftlinkpreview HOT 7 CLOSED

dastan1302 avatar dastan1302 commented on June 14, 2024 1
Could not find module 'SwiftLinkPreview' for target 'x86_64-apple-ios-simulator'; found: arm64, arm64-apple-ios-simulator`

from swiftlinkpreview.

Comments (7)

eliburke avatar eliburke commented on June 14, 2024 1

I got this error too, with XCode 13.
Runs on a device but I can't run an x86_64 simulator build (and I don't have an M1 Mac handy)

I've cleaned out my DerivedData and artifacts, and built using Carthage:
carthage update --platform iOS --no-use-binaries --cache-builds --use-xcframeworks

Problem occurs when I run:
Could not find module 'SwiftLinkPreview' for target 'x86_64-apple-ios-simulator'; found: arm64, arm64-apple-ios-simulator, at: ~/Library/Developer/Xcode/DerivedData/APP_BUILD_DIRECTORY/Build/Products/Debug-iphonesimulator/SwiftLinkPreview.framework/Modules/SwiftLinkPreview.swiftmodule

I was able to resolve the problem by removing the "user-defined" VALID_ARCHS lines from the xcodeproj file. It was not sufficient to remove it in the GUI I had to manually remove from every configuration. I believe this is an old setting that was needed back in the day. #154 fixes.

from swiftlinkpreview.

LeonardoCardoso avatar LeonardoCardoso commented on June 14, 2024

I'm closing this issue because I couldn't reproduce. Are you still having this problem?

from swiftlinkpreview.

eliburke avatar eliburke commented on June 14, 2024

This is peripherally mentioned in the XCode 12 release notes:
https://developer.apple.com/documentation/xcode-release-notes/xcode-12-release-notes

The Build Settings editor no longer includes the Valid Architectures build setting (VALID_ARCHS), and its use is discouraged. Instead, there is a new Excluded Architectures build setting (EXCLUDED_ARCHS). If a project includes VALID_ARCHS, the setting is displayed in the User-Defined section of the Build Settings editor. (15145028)

from swiftlinkpreview.

Samigos avatar Samigos commented on June 14, 2024

I just got my first M1 mac and I get the exact same error! What is the fix here?

from swiftlinkpreview.

eliburke avatar eliburke commented on June 14, 2024

It's right there in my comment along with a merge request. You can pin to my branch or fork and fix it for yourself.

from swiftlinkpreview.

Samigos avatar Samigos commented on June 14, 2024

I tried pinning the pod to your branch (valid_archs), but cocoapods failed to find it! Indeed, thereโ€™s no branch with that name!

from swiftlinkpreview.

eliburke avatar eliburke commented on June 14, 2024

Ah sorry... I'm used to Carthage which lets you easily point to different repos. I can't help you any further than google but maybe check out "cocoapods private repo"

https://guides.cocoapods.org/making/private-cocoapods.html

from swiftlinkpreview.

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.