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

[Test][Intro] Fix introspection test on API changes for Xcode 9 Beta 1 #2191

Merged
merged 7 commits into from
Jun 10, 2017

Conversation

dalexsoto
Copy link
Member

@dalexsoto dalexsoto commented Jun 8, 2017

Bug filled for AVPlayerLooper. LoopingEnabled -> https://bugzilla.xamarin.com/show_bug.cgi?id=57302

Bug filled for CoreImage filters -> https://bugzilla.xamarin.com/show_bug.cgi?id=57350

Need to radar

  • case "EKCalendarItem": // Fails with NSInvalidArgumentException +[EKCalendarItem frozenClass]: unrecognized selector sent to class, will fill a radar
  • case "UITableViewFocusUpdateContext": // Objective-C exception thrown. Name: NSInternalInconsistencyException Reason: Invalid parameter not satisfying: focusSystem, will fill a radar

@@ -12140,6 +12140,9 @@ interface NSDateInterval : NSCopying, NSSecureCoding {
bool ContainsDate (NSDate date);
}

#if XAMCORE_4_0
[DisableDefaultCtor] // -init should never be called on NSUnit!
#endif
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's better not to be under 4_0
And add manual, empty ctor in another files (all excluded in 4_0) along with an obsolete attribute

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we error? o just warn?

src/uikit.cs Outdated
@@ -15839,6 +15839,9 @@ interface UIGuidedAccessRestrictionDelegate {
string GetDetailTextForGuidedAccessRestriction (string restrictionIdentifier);
}

#if XAMCORE_4_0
[DisableDefaultCtor] // [Assert] -init is not a useful initializer for this class. Use one of the designated initializers instead
#endif
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same

src/uikit.cs Outdated
@@ -15908,6 +15911,9 @@ interface UIFocusItem : UIFocusEnvironment
bool CanBecomeFocused { get; }
}

#if XAMCORE_4_0
[DisableDefaultCtor] // [Assert] -init is not a useful initializer for this class. Use one of the designated initializers instead
#endif
[NoWatch]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same

@monojenkins
Copy link
Collaborator

Build failure

@dalexsoto
Copy link
Member Author

@spouliot Done! Thanks for the feedback!

@monojenkins
Copy link
Collaborator

Build failure

Copy link
Member

@rolfbjarne rolfbjarne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also please add a bug for all the filter FIXMEs.

namespace XamCore.Foundation {
#if !XAMCORE_4_0
public partial class NSUnit {
[Obsolete ("Use the overload instead")]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use which overload?

dalexsoto and others added 6 commits June 9, 2017 19:03
Removed XAMCORE_4_0 checks from our api definition, and added
a file with stubs for all of them instead. Cleaner binding file
and easier to remove in the future

Fixed introspection also for mac by moving some check into base test definition
These need to be manually reviewed by whoever takes CoreImage framework
tracked in bugzilla so we do not forget
… order to avoid linking symbols meeded by test (xamarin#2196)

Rolf Kvinge [8:59 AM]
@dalexsoto the fix is to not strip the executable please PR that
(it should probably go into master as well). This probably started
happening when Jeff implemented support for stripping debug builds
(previously the setting was ignored)
@dalexsoto
Copy link
Member Author

@rolfbjarne Fixed and bug filled here https://bugzilla.xamarin.com/show_bug.cgi?id=57350 also MtouchNoSymbolStrip fix is part of this PR

@monojenkins
Copy link
Collaborator

Build failure

@monojenkins
Copy link
Collaborator

Build failure

@monojenkins
Copy link
Collaborator

Build failure

@dalexsoto
Copy link
Member Author

Introspection is finally green 😀

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

Successfully merging this pull request may close these issues.

5 participants