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

[Objective-C - Cocoapods] Build failure since version 2.33.1 (AWSPinpointTargetingModel.h) #5504

Open
averroecp opened this issue Feb 28, 2025 · 6 comments
Labels
pending-maintainer-response Issue is pending response from an Amplify team member pinpoint Issues related to AWS Pinpoint question General question

Comments

@averroecp
Copy link

Describe the bug
Since version 2.33.1 I got a double error in AWSPinpointTargetingModel.h (line 2611) using Objective-C (Cocoapods).
It seems that the word "operator" can't be used for name of a variable.

To Reproduce
Steps to reproduce the behavior:

Build
See errors
Code Snippet https://github.com/Property (nonatomic, assign) AWSPinpointTargetingOperator operator;

Environment(please complete the following information):

Dependency Manager: Cocoapods
Swift Version : Objective-C
Xcode Version: 16.0
Device Information (please complete the following information):

Device: iPhone14Pro
iOS Version: iOS 16.1
iPhone Device:
Relevant Console Output
Pods/Headers/Public/AWSPinpoint/AWSPinpointTargetingModel.h:2403:68: Expected a type
Pods/Headers/Public/AWSPinpoint/AWSPinpointTargetingModel.h:2403:1: Property requires fields to be named

@github-actions github-actions bot added pending-triage Issue is pending triage pending-maintainer-response Issue is pending response from an Amplify team member labels Feb 28, 2025
@averroecp
Copy link
Author

It is worth noting that I use cocoapods to manage awspinpoint in the framework

@averroecp
Copy link
Author

I have no problem using it in the demo app

@thisisabhash
Copy link
Member

Hello, Would you be able to provide more details of your use case of using AWSPinpoint in framework vs demo app?
Is this something which worked before and not working in 2.33.1? Have you tried it with the latest version: 2.40.1?

@github-actions github-actions bot removed the pending-maintainer-response Issue is pending response from an Amplify team member label Feb 28, 2025
@thisisabhash thisisabhash added question General question pinpoint Issues related to AWS Pinpoint labels Feb 28, 2025
@averroecp
Copy link
Author

I can't provide more information because my project is complicated. I just reference AWSPinpoint in a Framework, and then call this Framework in the app. This Framework and the app are managed using xcworkspace. Do I need to set something in the Framework configuration to remove this error? I used version 2.5.2 without any problems, and the latest version 2.40.1 also has this error

@github-actions github-actions bot added the pending-maintainer-response Issue is pending response from an Amplify team member label Mar 3, 2025
@thisisabhash thisisabhash removed the pending-triage Issue is pending triage label Mar 3, 2025
@thisisabhash
Copy link
Member

I suspect using Cocoapods to manage AWSPinpoint to be the issue.

Could you please try the steps mentioned here to use AWSPinpoint in a framework?
https://github.com/aws-amplify/aws-sdk-ios?tab=readme-ov-file#frameworks

@github-actions github-actions bot removed the pending-maintainer-response Issue is pending response from an Amplify team member label Mar 7, 2025
@averroecp
Copy link
Author

I have tried not using Cocoapods but it doesn't work

@github-actions github-actions bot added the pending-maintainer-response Issue is pending response from an Amplify team member label Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending-maintainer-response Issue is pending response from an Amplify team member pinpoint Issues related to AWS Pinpoint question General question
Projects
None yet
Development

No branches or pull requests

2 participants