Skip to content

Build Errors for iOS 8.4 in Xcode 7.0.1 #14

@DataZombies

Description

@DataZombies

Conversion errors are not shown.

iOS 8.4

CameraCalibrationAlgorithm.cpp

  • Code will never be executed
if (false && m_patternfound)
{
    const cv::TermCriteria tc = cv::TermCriteria(cv::TermCriteria::EPS + cv::TermCriteria::COUNT, 30, 0.1);
    cv::cornerSubPix(frame, corners2d, cv::Size(5, 5), cv::Size(-1, -1), tc);
}
  • Unused variable 'rms'
double rms = cv::calibrateCamera(objectPoints, imagePoints, imageSize, cameraMatrix,
                                 distCoeffs, rvecs, tvecs, flags | cv::CALIB_FIX_K4 | cv::CALIB_FIX_K5);
  • LEAK: Value stored to 'rms' during its initialization is never read

ImageViewController.mm

  • ’setContentSizeForViewInPopover:' is deprecated: first deprecated in iOS 7.0 - Use UIViewController.preferredContentSize instead.

BaseSampleViewController.mm

  • ’TWTweetComposeViewController' is deprecated: first deprecated in iOS 6.0
  • ’presentModalViewController:animated:' is deprecated: first deprecated in iOS 6.0

UIImage2OpenCV.mm

  • LEAK: Potential leak of an object stored into 'imageRef'
    • Call to function 'CGImageCreateWithImageInRect' returns a Core Foundation object with a +1 retain count
    • Object leaked: object allocated and stored into 'imageRef' is not referenced later in this execution path and has a retain count of +1

SampleOptionsTableViewDelegate.mm

  • LEAK: Instance variable used while 'self' is not set to the result of '[(super or self) init...]'
  • LEAK: Returning 'self' while it is not set to the result of '[(super or self) init...]'

FeatureDetectionClass.cpp

  • LEAK: Value stored to 'removed' during its initialization is never read
  • LEAK: FeatureDetectionClass.cpp:268:5: Value stored to 'removed' is never read

(null): warning: Could not resolve external type _ZTSNSt3__113basic_ostreamIcNS_11char_traitsIcEEE6sentryE
(null): warning: Could not resolve external type _ZTSNSt3__16vectorIfNS_9allocatorIfEEE24__RAII_IncreaseAnnotatorE
(null): warning: Could not resolve external type _ZTSNSt3__16vectorIN2cv8KeyPointENS_9allocatorIS2_EEE24__RAII_IncreaseAnnotatorE
(null): warning: Could not resolve external type _ZTSNSt3__16vectorIN2cv3MatENS_9allocatorIS2_EEE24__RAII_IncreaseAnnotatorE
(null): warning: Could not resolve external type _ZTSNSt3__16vectorIhNS_9allocatorIhEEE24__RAII_IncreaseAnnotatorE

iOS 9

VideoViewController.h

  • ’UIPopoverController' is deprecated: first deprecated in iOS 9.0 - UIPopoverController is deprecated. Popovers are now implemented as UIViewController presentations. Use a modal presentation style of UIModalPresentationPopover and UIPopoverPresentationController.

ImageViewController.h

  • ‘UIPopoverController' is deprecated: first deprecated in iOS 9.0 - UIPopoverController is deprecated. Popovers are now implemented as UIViewController presentations. Use a modal presentation style of UIModalPresentationPopover and UIPopoverPresentationController.

DetailViewController.mm

  • ’UIPopoverController' is deprecated: first deprecated in iOS 9.0 - UIPopoverController is deprecated. Popovers are now implemented as UIViewController presentations. Use a modal presentation style of UIModalPresentationPopover and UIPopoverPresentationController.

CameraCalibrationAlgorithm.cpp

  • Code will never be executed
if (false && m_patternfound)
{
    const cv::TermCriteria tc = cv::TermCriteria(cv::TermCriteria::EPS + cv::TermCriteria::COUNT, 30, 0.1);
    cv::cornerSubPix(frame, corners2d, cv::Size(5, 5), cv::Size(-1, -1), tc);
}
  • Unused variable 'rms'
double rms = cv::calibrateCamera(objectPoints, imagePoints, imageSize, cameraMatrix,
                                 distCoeffs, rvecs, tvecs, flags | cv::CALIB_FIX_K4 | cv::CALIB_FIX_K5);
  • LEAK: Value stored to 'rms' during its initialization is never read

VideoViewController.mm

  • ’UIPopoverController' is deprecated: first deprecated in iOS 9.0 - UIPopoverController is deprecated. Popovers are now implemented as UIViewController presentations. Use a modal presentation style of UIModalPresentationPopover and UIPopoverPresentationController.

ImageViewController.mm

  • ’UIPopoverController' is deprecated: first deprecated in iOS 9.0 - UIPopoverController is deprecated. Popovers are now implemented as UIViewController presentations. Use a modal presentation style of UIModalPresentationPopover and UIPopoverPresentationController.
  • ’UIPopoverController' is deprecated: first deprecated in iOS 9.0 - UIPopoverController is deprecated. Popovers are now implemented as UIViewController presentations. Use a modal presentation style of UIModalPresentationPopover and UIPopoverPresentationController.
  • ’setContentSizeForViewInPopover:' is deprecated: first deprecated in iOS 7.0 - Use UIViewController.preferredContentSize instead.
  • ’UIPopoverController' is deprecated: first deprecated in iOS 9.0 - UIPopoverController is deprecated. Popovers are now implemented as UIViewController presentations. Use a modal presentation style of UIModalPresentationPopover and UIPopoverPresentationController.
  • ’ALAssetsLibrary' is deprecated: first deprecated in iOS 9.0 - Use PHPhotoLibrary from the Photos framework instead
  • ’ALAssetsLibraryAssetForURLResultBlock' is deprecated: first deprecated in iOS 9.0 - Use fetchAssetsWithLocalIdentifiers:options: on PHAsset to fetch assets by local identifier (or to lookup PHAssets by a previously known ALAssetPropertyAssetURL use fetchAssetsWithALAssetURLs:options:) from the Photos framework instead
  • ’defaultRepresentation' is deprecated: first deprecated in iOS 9.0 - Use PHImageRequestOptions with the PHImageManager from the Photos framework instead
  • ’fullResolutionImage' is deprecated: first deprecated in iOS 9.0 - Use requestImageForAsset:targetSize:contentMode:options:resultHandler: on PHImageManager to request a targetSize PHImageManagerMaximumSize for a PHAsset from the Photos framework instead
  • ’ALAsset' is deprecated: first deprecated in iOS 9.0 - Use PHAsset from the Photos framework instead
  • ’ALAssetRepresentation' is deprecated: first deprecated in iOS 9.0 - Use PHImageRequestOptions with the PHImageManager from the Photos framework instead
  • ’ALAssetsLibraryAccessFailureBlock' is deprecated: first deprecated in iOS 9.0 - Use the Photos framework instead
  • ’assetForURL:resultBlock:failureBlock:' is deprecated: first deprecated in iOS 9.0 - Use fetchAssetsWithLocalIdentifiers:options: on PHAsset to fetch assets by local identifier (or to lookup PHAssets by a previously known ALAssetPropertyAssetURL use fetchAssetsWithALAssetURLs:options:) from the Photos framework instead

BaseSampleViewController.mm

  • ’TWTweetComposeViewController' is deprecated: first deprecated in iOS 6.0
  • ’presentModalViewController:animated:' is deprecated: first deprecated in iOS 6.0
  • ’UIAlertView' is deprecated: first deprecated in iOS 9.0 - UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead

UIImage2OpenCV.mm

  • LEAK: Potential leak of an object stored into 'imageRef'
    • Call to function 'CGImageCreateWithImageInRect' returns a Core Foundation object with a +1 retain count
    • Object leaked: object allocated and stored into 'imageRef' is not referenced later in this execution path and has a retain count of +1

SampleOptionsTableViewDelegate.mm

  • LEAK: Instance variable used while 'self' is not set to the result of '[(super or self) init...]'
  • LEAK: Returning 'self' while it is not set to the result of '[(super or self) init...]'

FeatureDetectionClass.cpp

  • LEAK: Value stored to 'removed' during its initialization is never read
  • LEAK: Value stored to 'removed' is never read

(null): warning: Could not resolve external type _ZTSNSt3__113basic_ostreamIcNS_11char_traitsIcEEE6sentryE
(null): warning: Could not resolve external type _ZTSNSt3__16vectorIfNS_9allocatorIfEEE24__RAII_IncreaseAnnotatorE
(null): warning: Could not resolve external type _ZTSNSt3__16vectorIN2cv8KeyPointENS_9allocatorIS2_EEE24__RAII_IncreaseAnnotatorE
(null): warning: Could not resolve external type _ZTSNSt3__16vectorIN2cv3MatENS_9allocatorIS2_EEE24__RAII_IncreaseAnnotatorE
(null): warning: Could not resolve external type _ZTSNSt3__16vectorIhNS_9allocatorIhEEE24__RAII_IncreaseAnnotatorE

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions