在框架模块中包含非模块化头文件FBSDKCoreKit.FBSDKAppLinkResolver'

时间:2016-03-24 23:32:26

标签: swift

昨天我将Xcode更新到版本7.3(7D175),突然我的应用程序不再构建了。我的死线已接近,我无法构建应用程序: - (

我尝试将Build Settings更改为:

  • 允许框架模块中的非模块化包含= yes
  • enable modules = no

我的pod文件:

angular.module('fotaAdminPortal')
.directive('campaignItem', ['vsmsCampaignFactory', function (vsmsCampaignFactory) {
    return {
        restrict: 'A',
        transclude: true,
        scope: {
            campaign: '=',
            closePreview: '&',
            userRole: '@',
            campaignOptions: '=?',
            showPreview: '=?',
            showCampaignDetails: '=?',
            campaignDetail: '=?'
        },
        // templateUrl: 'app/vsms/admin/campaign/campaign.tpl.html',
        link: function(scope, element, attr, ctrl, transclude) {
            scope.showCampaignDetails = false;
            transclude(scope, function(clone) {
                element.append(clone);
                element[0].addEventListener('click', function(e) {
                    if(e.target.id == 'campaign-options') {
                      return;
                    } else {
                      vsmsCampaignFactory.getCampaign(scope.campaign.id)
                      .then(function(response) {
                          scope.showCampaignDetails = true;
                          scope.campaignDetails = response;
                          console.log(scope);
                      });
                    }
                })
            });
         ...

已安装cocoapods-0.39.0

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.1'
use_frameworks!

#Parse, Facebook, Twitter
pod 'Parse'
pod 'ParseUI'
pod 'ParseFacebookUtilsV4'
pod 'ParseTwitterUtils'
pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'
pod 'FBSDKShareKit'

我该怎么做才能解决这个问题?

1 个答案:

答案 0 :(得分:7)

我将应用内置设置更改为:

allow non-modular includes in framework modules = no
enable modules = yes

我改变了Pods> ParseFacebookUtilsV4如下图所示,一切都很好。我希望这也可以帮到你。

See the screen-shot

它对我有用!