WenchaoD / FSCalendar

A fully customizable iOS calendar library, compatible with Objective-C and Swift
MIT License
10.59k stars 1.93k forks source link

I got some issues about IBDesignables #966

Open boraJeon opened 6 years ago

boraJeon commented 6 years ago

The following informations are requested in a bug report

Cherobin commented 6 years ago

Hello, not use pods, link project direct in your project. Its working, but not have a preview.

JulesMoorhouse commented 6 years ago

I got this working with pods...


source 'https://github.com/CocoaPods/Specs.git'
project 'my Proj.xcodeproj'

platform :ios, :deployment_target => "9.3"
use_frameworks!

target 'My App' do
    pod 'FSCalendar', :inhibit_warnings => true
end
post_install do |installer_or_rep|
    installer_or_rep.pods_project.build_configurations.each do |config|
        # Configure Pod targets for Xcode 8 compatibility
        config.build_settings['SWIFT_VERSION'] = '2.3'
        config.build_settings['PROVISIONING_PROFILE_SPECIFIER'] = 'YOUR ID/'
        config.build_settings['ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES'] = 'NO'
        config.build_settings.delete('CODE_SIGNING_ALLOWED')
        config.build_settings.delete('CODE_SIGNING_REQUIRED')
    end
    installer_or_rep.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
            config.build_settings['GCC_WARN_INHIBIT_ALL_WARNINGS'] = "YES"
            config.build_settings['ONLY_ACTIVE_ARCH'] = 'NO'
            config.build_settings['LD_RUNPATH_SEARCH_PATHS'] = ['$(FRAMEWORK_SEARCH_PATHS)']
            #config.build_settings['LD_RUNPATH_SEARCH_PATHS'] = ['$(FRAMEWORK_SEARCH_PATHS)']
            #config.build_settings['FRAMEWORK_SEARCH_PATHS'] = ''
            #config.build_settings.delete('LD_RUNPATH_SEARCH_PATHS')
            #config.build_settings.delete('CODE_SIGNING_ALLOWED')
            #config.build_settings.delete('CODE_SIGNING_REQUIRED')

            config.build_settings['EXPANDED_CODE_SIGN_IDENTITY'] = ""
            #config.build_settings['CODE_SIGNING_REQUIRED'] = "NO"
            #config.build_settings['CODE_SIGNING_ALLOWED'] = "NO"
        end
    end
end

You may not need all of the config