You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "jcesarmobile (JIRA)" <ji...@apache.org> on 2017/07/09 14:28:01 UTC

[jira] [Commented] (CB-12995) use_frameworks with cocoapod works in xCode but not from cli build

    [ https://issues.apache.org/jira/browse/CB-12995?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16079622#comment-16079622 ] 

jcesarmobile commented on CB-12995:
-----------------------------------

use_framework is not officially supported, linking this issue with CB-11893

> use_frameworks with cocoapod works in xCode but not from cli build
> ------------------------------------------------------------------
>
>                 Key: CB-12995
>                 URL: https://issues.apache.org/jira/browse/CB-12995
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-cli
>    Affects Versions: cordova-ios@4.3.0
>            Reporter: Johan
>
> Hi
> I am trying to use use a cocoapod (AFNetworking) in an ionic project.
> I have setup the AFNetworking reference in config.xml and the Podfile is generated ok inside platforms/ios.
> However in order for me to be able to import AFNetworking from swift I need to add the use_frameworks! directive to the Podfile. This I am doing in my build script so the podfile is update with this line before calling:
> ionic cordova build ios
> The podfile is correct and I can successfully build the whole project afterwards in xCode with no problems at all. I can import AFNetworking etc.
> The issue is that ionic cordova build ios fails with error 65 and the output below and I am not able to understand why. The fact that I can open the workspace in xcode and do the build indicates that it is not broken but something is missing when running from the cli. If I remove the use_framwork! and the pod, then the command line build works as well.
> ** BUILD FAILED **
>         The following build commands failed:
>         ProcessProductPackaging ""
>         /Users/yc00025/Library/Developer/Xcode/DerivedData/bdd-app-dcjeitzfhkidnpftbkzrpdourgyy/Build/Intermediates/Pods.build/Debug-iphonesimulator/AFNetworking.build/AFNetworking.framework.xcent
>         (1 failure)
>         Error: Error code 65 for command: xcodebuild with args:
>         -xcconfig,/Users/yc00025/projects/bdd-app/platforms/ios/cordova/build-debug.xcconfig,-workspace,bdd-app.xcworkspace,-scheme,bdd-app,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS
>         Simulator,name=iPhone
>         5s,build,CONFIGURATION_BUILD_DIR=/Users/yc00025/projects/bdd-app/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/yc00025/projects/bdd-app/platforms/ios/build/sharedpch



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org