weixin_39832348
weixin_39832348
2020-12-29 17:51

Cannot find objcgen on MacOS after building Visual Studio Xamarin.ios class lib with NuGet Embedinnator-4000 (.NET Embedding)

Steps to Reproduce

follow instructions at https://docs.microsoft.com/en-us/xamarin/tools/dotnet-embedding/get-started/install/install

  1. Install Visual Studio 2019 Pro onto MacOS
  2. Create Xamarin.ios class library project
  3. Install Nuget Embeddinator-4000
  4. Build project. It built okay.
  5. Open a MacOS Terminal
  6. Change directory to solution root.

Expected Behavior

Should find tools : ./packages/Embeddinator-4000.[VERSION]/tools/objcgen (Objective-C) ./packages/Embeddinator-4000.[VERSION]/tools/Embeddinator-4000.exe

Actual Behavior

Can't find packages/ or objcgen or Embeddinator-4000.exe

Environment

MAC OS

```

Build Logs

Example Project (If Possible)

该提问来源于开源项目:mono/Embeddinator-4000

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

10条回答

  • weixin_39980347 weixin_39980347 4月前
    
    Open a MacOS Terminal
    Change directory to solution root.
    

    Can you post the actual commands you typed, and the output.

    点赞 评论 复制链接分享
  • weixin_39832348 weixin_39832348 4月前

    Very simple:
    1. In Visual Studio 2019 I clicked new > project > xamarin.ios class library 2. I right-clicked project > Nuget manager 3. I browsed Nuget manager for "embeddinator-4000" and clicked INSTALL 4. In Visual Studio I pressed which builds.

    So problem seems most likely that Nuget Emb-4000 installation did not install objcgen. When I use MacOS Finder and search entire disk for objcgen, it finds nothing.

    So, I just changed TITLE of this issue to this: "Cannot find objcgen on MacOS after installation of NuGet Embedinnator-4000 for Visual Studio Xamarin.ios class lib project"

    点赞 评论 复制链接分享
  • weixin_39980347 weixin_39980347 4月前

    Are you building from VS Windows or VS Mac?

    点赞 评论 复制链接分享
  • weixin_39832348 weixin_39832348 4月前

    VS MAC

    ———————————————— Douglas K. Bell, VP of Software MOVANO, Inc. 6200 Stoneridge Mall Rd. Suite 300 Pleasanton, California 94588 (925)200-3200 Tel/Text

    On Mar 11, 2020, at 12:43 PM, Chris Hamons wrote:

    

    Are you building from VS Windows or VS Mac?

    — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/mono/Embeddinator-4000/issues/763#issuecomment-597831459, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOM5636OVBCG2PJL5MULNLLRG7SXFANCNFSM4LFMEM6Q.

    点赞 评论 复制链接分享
  • weixin_39980347 weixin_39980347 4月前

    Oh I bet I know what's going on.

    Newer VSfM are likely using PackagesReferences and we haven't updated our documentation. Those explode nugets in a global location, not project specific.

    Check for this path:

    ~/.nuget/packages/embeddinator-4000/0.4.0/tools/objcgen

    点赞 评论 复制链接分享
  • weixin_39832348 weixin_39832348 4月前

    Sorry, my mistake was not first building Embeddinator 4000 project.

    ———————————————— Douglas K. Bell, VP of Software MOVANO, Inc. 6200 Stoneridge Mall Rd. Suite 300 Pleasanton, California 94588 (925)200-3200 Tel/Text

    On Mar 11, 2020, at 10:24 AM, Chris Hamons wrote:

    

    Change directory to solution root.```

    Can you post the actual commands you typed, and the output.

    — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/mono/Embeddinator-4000/issues/763#issuecomment-597763409, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOM5633TAB3KBTHZCANULWDRG7CM3ANCNFSM4LFMEM6Q.

    点赞 评论 复制链接分享
  • weixin_39980347 weixin_39980347 4月前

    -movano Does that mean your issue is resolved?

    点赞 评论 复制链接分享
  • weixin_39832348 weixin_39832348 4月前

    No, because emb 4000 gets build errors.

    ———————————————— Douglas K. Bell, VP of Software MOVANO, Inc. 6200 Stoneridge Mall Rd. Suite 300 Pleasanton, California 94588 (925)200-3200 Tel/Text

    On Mar 11, 2020, at 1:17 PM, Chris Hamons wrote:

    

    -movanohttps://github.com/dbell-movano Does that mean your issue is resolved?

    — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/mono/Embeddinator-4000/issues/763#issuecomment-597845786, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOM56375FKIQBWHAK2SFYJLRG7WU7ANCNFSM4LFMEM6Q.

    点赞 评论 复制链接分享
  • weixin_39980347 weixin_39980347 4月前

    As noted, this issue still is need-info, and people won't be able to look into it without more details. It is unclear what the issue here is at all:

    • Are you unable to find objcgen in the new location?
    • Is there a build error? If so what is the command line invocation and full build log?
    点赞 评论 复制链接分享
  • weixin_39980347 weixin_39980347 4月前

    You've now opened 3 issues on this, and none of them are bugs. Closing for https://github.com/mono/Embeddinator-4000/issues/768

    点赞 评论 复制链接分享

相关推荐