Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
229 views
in Technique[技术] by (71.8m points)

swift - Azure iOS pipeline: ld: framework not found MapboxAccounts

enter image description here

  1. Run successfully on local mac book
  2. Using iOS 14
  3. Show error: ld: framework not found MapboxAccounts (using Mapbox)
  4. Yaml file:
    pool:
      vmImage: 'macos-latest'
    
    variables:
    - group: Mapbox
    - name: configuration
      value: 'Debug'
    - name: sdk
      value: 'iphoneos'
    - name: scheme
      value: 'Mobile'
    
    steps:
    - script: |
        echo "machine api.mapbox.com" > ~/.netrc
        echo "login mapbox" >> ~/.netrc
        echo "password $(sdkDownloadToken)" >> ~/.netrc
    
    - task: CocoaPods@0
      displayName: 'Pod installing'
      inputs:
        forceRepoUpdate: false
    
    - task: Xcode@5
      displayName: 'Building'
      inputs:
        actions: 'clean build'
        scheme: '$(scheme)'
        sdk: '$(sdk)'
        configuration: '$(configuration)'
        xcWorkspacePath: '**/*.xcodeproj/project.xcworkspace'
        xcodeVersion: 'default' # Options: 8, 9, 10, 11, default, specifyPath
        packageApp: false
  1. Any help and thanks
question from:https://stackoverflow.com/questions/65893946/azure-ios-pipeline-ld-framework-not-found-mapboxaccounts

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Azure iOS pipeline: ld: framework not found MapboxAccounts

According to the warning:

enter image description here

It seems that you save the framework under the local folder User/runner/Library/Developer/Xcode/De instead of the project folder. Obviously this folder has not been added to our repo, so when we execute the build on the hosted agent, the files we need do not exist in that folder.

To resolve this issue, we need copied the .framework folder over to project/solution, then set the correct FRAMEWORK_SEARCH_PATHS.

Please check this thread for some more details.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...