Giter Site home page Giter Site logo

Comments (3)

toshi0383 avatar toshi0383 commented on August 25, 2024

BTW I have a xcconfig like this.
This should be enough for universal framework.

SUPPORTED_PLATFORMS = macosx iphoneos iphonesimulator watchos watchsimulator appletvos appletvsimulator
TARGETED_DEVICE_FAMILY = 1,2,3,4

ENABLE_BITCODE[sdk=iphone*] = YES;
ENABLE_BITCODE[sdk=watch*] = YES;
ENABLE_BITCODE[sdk=appletv*] = YES;

LD_RUNPATH_SEARCH_PATHS[sdk=macosx*] = $(inherited) @executable_path/../Frameworks @loader_path/../Frameworks
LD_RUNPATH_SEARCH_PATHS[sdk=iphone*] = $(inherited) @executable_path/Frameworks @loader_path/Frameworks
LD_RUNPATH_SEARCH_PATHS[sdk=watch*] = $(inherited) @executable_path/Frameworks @loader_path/Frameworks
LD_RUNPATH_SEARCH_PATHS[sdk=appletv*] = $(inherited) @executable_path/Frameworks @loader_path/Frameworks

// NOTE: LGTMKit depends on Carthage frameworks
FRAMEWORK_SEARCH_PATHS[sdk=macosx*] = $(inherited) $(PROJECT_DIR)/Carthage/Build/Mac
FRAMEWORK_SEARCH_PATHS[sdk=iphone*] = $(inherited) $(PROJECT_DIR)/Carthage/Build/iOS

APPLICATION_EXTENSION_API_ONLY = YES;

from xcodegen.

yonaskolb avatar yonaskolb commented on August 25, 2024

I see. What's happening now is that I'm guessing you're specifying

platform: iOS,macOS,tvOS,watchOS

which then automatically creates a target for each platform.

There are some downsides to having a universal framework as opposed to frameworks per platform, but we should still make it possible.
I guess what is needed is to make platform optional, but with the knowledge that the developer will provide all the relevant build settings if it's left out.

These are the platform setting presets by the way https://github.com/yonaskolb/XcodeGen/tree/master/SettingPresets/Platforms

If you did want to stick the the multi target approach you can fix the errors in the spec by just appending _iOS or _macOS to the target dependencies. Note that the PRODUCT_NAME is still the same and without the suffix, so you can still import these frameworks with import LGTMKit

from xcodegen.

toshi0383 avatar toshi0383 commented on August 25, 2024

Thanks for quick follow up!
I will try to workaround it by appending _iOS and _macOS for now.👌

from xcodegen.

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.