Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS build fails BITCrashCXXExceptionHandler.mm:61:17: error: variable has incomplete type 'void' #5

Open
shauntif opened this issue Dec 4, 2017 · 1 comment

Comments

@shauntif
Copy link

shauntif commented Dec 4, 2017

Please help. I tested with a new plain app.
Tested on 2 different macs and get the same result, in any project.
tns 3.3.1
npm 5.5.1
xcode 9.1

Create new app
Add this SDK.
Setup based on readme.
iOS build fails with this message:

Full terminal output:

usernameMacbook4:hockeyApp username$ tns platform add ios
Copying template files...
◞ Installing tns-iosInstalling tns-ios

  • [email protected]
    added 1 package in 1.738s
    Project successfully created.
    usernameMacbook4:hockeyApp username$ tns run ios
    Searching for devices...
    Executing before-liveSync hook from /Users/username/Documents/Development/native-script/hockeyApp/hooks/before-liveSync/nativescript-angular-sync.js
    Executing before-prepare hook from /Users/username/Documents/Development/native-script/hockeyApp/hooks/before-prepare/nativescript-dev-typescript.js
    Found peer TypeScript 2.4.2
    Preparing project...
    Successfully prepared plugin nativescript-angular for ios.
    Successfully prepared plugin nativescript-hockey-sdk for ios.
    Successfully prepared plugin nativescript-theme-core for ios.
    Successfully prepared plugin tns-core-modules for ios.
    Successfully prepared plugin nativescript-intl for ios.
    Successfully prepared plugin tns-core-modules-widgets for ios.
    Installing pods...
    Analyzing dependencies
    Downloading dependencies
    Installing HockeySDK-Source (4.1.3)
    Generating Pods project
    Integrating client project

[!] Please close any current Xcode sessions and use hockeyApp.xcworkspace for this project from now on.
Sending stats
Pod installation complete! There is 1 dependency from the Podfile and 1 total pod installed.
Project successfully prepared (iOS)
Building project...
Xcode build...
2017-12-04 11:42:33.479 xcodebuild[4189:433522] [MT] PluginLoading: Required plug-in compatibility UUID C3998872-68CC-42C2-847C-B44D96AB2691 for plug-in at path '/Library/Application Support/Developer/Shared/Xcode/Plug-ins/Unity4XC.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2017-12-04 11:42:33.480 xcodebuild[4189:433522] [MT] PluginLoading: Required plug-in compatibility UUID C3998872-68CC-42C2-847C-B44D96AB2691 for plug-in at path '
/Library/Application Support/Developer/Shared/Xcode/Plug-ins/SCXcodeMinimap.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2017-12-04 11:42:33.480 xcodebuild[4189:433522] [MT] PluginLoading: Required plug-in compatibility UUID C3998872-68CC-42C2-847C-B44D96AB2691 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/OMColorSense.xcplugin' not present in DVTPlugInCompatibilityUUIDs
=== BUILD TARGET HockeySDK-Source OF PROJECT Pods WITH CONFIGURATION Debug ===
/Users/username/Documents/Development/native-script/hockeyApp/platforms/ios/Pods/HockeySDK-Source/Classes/BITCrashCXXExceptionHandler.mm:61:17: error: variable has incomplete type 'void'
extern "C" void LIBCXXABI_NORETURN __cxa_throw(void *exception_object, std::type_info *tinfo, void (*dest)(void *))
^
/Users/username/Documents/Development/native-script/hockeyApp/platforms/ios/Pods/HockeySDK-Source/Classes/BITCrashCXXExceptionHandler.mm:61:35: error: expected ';' after top level declarator
extern "C" void LIBCXXABI_NORETURN __cxa_throw(void *exception_object, std::type_info *tinfo, void (*dest)(void *))
^
;
/Users/username/Documents/Development/native-script/hockeyApp/platforms/ios/Pods/HockeySDK-Source/Classes/BITCrashCXXExceptionHandler.mm:59:17: warning: method definition for 'addCXXExceptionHandler:' not found [-Wincomplete-implementation]
@implementation BITCrashUncaughtCXXExceptionHandlerManager
^
In file included from /Users/username/Documents/Development/native-script/hockeyApp/platforms/ios/Pods/HockeySDK-Source/Classes/BITCrashCXXExceptionHandler.mm:33:
/Users/username/Documents/Development/native-script/hockeyApp/platforms/ios/Pods/HockeySDK-Source/Classes/BITCrashCXXExceptionHandler.h:46:1: note: method 'addCXXExceptionHandler:' declared here

  • (void)addCXXExceptionHandler:(nonnull BITCrashUncaughtCXXExceptionHandler)handler;
    ^
    /Users/username/Documents/Development/native-script/hockeyApp/platforms/ios/Pods/HockeySDK-Source/Classes/BITCrashCXXExceptionHandler.mm:59:17: warning: method definition for 'removeCXXExceptionHandler:' not found [-Wincomplete-implementation]
    @implementation BITCrashUncaughtCXXExceptionHandlerManager
    ^
    In file included from /Users/username/Documents/Development/native-script/hockeyApp/platforms/ios/Pods/HockeySDK-Source/Classes/BITCrashCXXExceptionHandler.mm:33:
    /Users/username/Documents/Development/native-script/hockeyApp/platforms/ios/Pods/HockeySDK-Source/Classes/BITCrashCXXExceptionHandler.h:47:1: note: method 'removeCXXExceptionHandler:' declared here
  • (void)removeCXXExceptionHandler:(nonnull BITCrashUncaughtCXXExceptionHandler)handler;
    ^
    /Users/username/Documents/Development/native-script/hockeyApp/platforms/ios/Pods/HockeySDK-Source/Classes/BITCrashCXXExceptionHandler.mm:239:46: error: missing '@EnD'
    #endif /* HOCKEYSDK_FEATURE_CRASH_REPORTER */
    ^
    /Users/username/Documents/Development/native-script/hockeyApp/platforms/ios/Pods/HockeySDK-Source/Classes/BITCrashCXXExceptionHandler.mm:59:1: note: implementation started here
    @implementation BITCrashUncaughtCXXExceptionHandlerManager
    ^
    2 warnings and 3 errors generated.
    ** BUILD FAILED **

Unable to apply changes on device: xxxx. Error is: Command xcodebuild failed with exit code 65.
Executing after-watch hook from /Users/username/Documents/Development/native-script/hockeyApp/hooks/after-watch/nativescript-dev-typescript.js

Package.json
{
"description": "NativeScript Application",
"license": "SEE LICENSE IN ",
"readme": "NativeScript Application",
"repository": "",
"nativescript": {
"id": "com.coolapp.mobile",
"tns-ios": {
"version": "3.3.0"
}
},
"dependencies": {
"@angular/animations": "~4.4.1",
"@angular/common": "~4.4.1",
"@angular/compiler": "~4.4.1",
"@angular/core": "~4.4.1",
"@angular/forms": "~4.4.1",
"@angular/http": "~4.4.1",
"@angular/platform-browser": "~4.4.1",
"@angular/router": "~4.4.1",
"nativescript-angular": "~4.4.0",
"nativescript-hockey-sdk": "^1.2.0",
"nativescript-theme-core": "~1.0.2",
"reflect-metadata": "~0.1.8",
"rxjs": "~5.4.2",
"tns-core-modules": "~3.3.0",
"zone.js": "~0.8.2"
},
"devDependencies": {
"nativescript-dev-typescript": "~0.5.0",
"typescript": "~2.4.2"
}
}

@surdu
Copy link

surdu commented Dec 7, 2017

Same issue here.

$tns info
All NativeScript components versions information
┌──────────────────┬────────────────────┬────────────────┬─────────────┐
│ Component        │ Current version    │ Latest version │ Information │
│ nativescript     │ 3.3.1              │ 3.3.1          │ Up to date  │
│ tns-core-modules │ 3.3.0              │ 3.3.0          │ Up to date  │
│ tns-android      │ 3.4.0-2017-10-31-1 │ 3.3.1          │ Up to date  │
│ tns-ios          │ 3.4.0-2017-11-21-2 │ 3.3.0          │ Up to date  │
└──────────────────┴────────────────────┴────────────────┴─────────────┘

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants